Metadata-Version: 2.1
Name: ssb-datadoc-model
Version: 4.0.2
Summary: Data Model for use in Statistics Norway's Metadata system
Home-page: https://github.com/statisticsnorway/ssb-datadoc-model
License: MIT
Author: Statistics Norway
Author-email: stat-dev@ssb.no
Requires-Python: >=3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: pydantic (>=2.4.0)
Project-URL: Repository, https://github.com/statisticsnorway/ssb-datadoc-model
Description-Content-Type: text/markdown

# ssb-datadoc-model

Data Model for use in Statistics Norway's Metadata system

## Purpose

This package contains pydantic models defining the fields and data types used in Statistics Norway's metadata system. The purpose of these models is to:

- Enable validation of user data
- Enable serialization and deserialization of metadata files
- Support versioning of the metadata format
- Enforce consistency across multiple tools

## Single Source of Truth

Fields and data types defined in models in this package are specified on internal Statistics Norway wiki pages:

- <https://statistics-norway.atlassian.net/l/cp/kQ9rpshS>

## Code generation

The models are defined as [JSON Schema](https://json-schema.org/) documents. These reside within the `src/` directory in this repo. Code for a range of languages is generated from the JSON Schema and will live inside the `generated/` directory, with a subdirectory for each language.

