Skip to content

Commit d04f6c4

Browse files
authored
Merge pull request #24 from pflooky/dev-authoritative-fix
Add in missing changelog notes, fix for authoritativeDefinitions
2 parents efd1420 + a1f181a commit d04f6c4

File tree

2 files changed

+27
-24
lines changed

2 files changed

+27
-24
lines changed

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
This document tracks the history and evolution of the **Open Data Contract Standard**.
22

3-
# v2.2.1 - 2023-10-03 - OPEN
3+
# v2.2.1 - 2023-12-15 - OPEN
44

5-
* Reformat Markdown tables.
6-
* Reformat quality examples to be valid YAML.
7-
* Added JSON schema for v2.2.1.
5+
* Reformat Markdown tables
6+
* Reformat quality examples to be valid YAML
7+
* Add in isUnique, primaryKeyPosition, partitionKeyPosition and clusterKeyPosition to `column` definition
8+
* Add [JSON schema](schema/odcs-json-schema.json) to validate YAML files for v2.2.1.
89
* Integrated as part of [Bitol](https://lfaidata.foundation/projects/bitol/).
910

1011
# v2.2.0 - 2023-07-27 - APPROVED

schema/odcs-json-schema.json

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"datasetDomain": {
131131
"type": "string",
132132
"description": "Name of the logical domain dataset the contract describes. This field is only required for output data contracts.",
133-
"examples": ["imdb_ds_aggregate", "receiver_profile_out", "transaction_profile_out"]
133+
"examples": ["imdb_ds_aggregate", "receiver_profile_out", "transaction_profile_out"]
134134
},
135135
"database": {
136136
"type": "string",
@@ -196,23 +196,7 @@
196196
}
197197
},
198198
"authoritativeDefinitions": {
199-
"type": "array",
200-
"description": "List of links to sources that provide more details on the table; examples would be a link to an external definition, a training video, a GitHub repo, Collibra, or another tool. Authoritative definitions follow the same structure in the standard.",
201-
"items": {
202-
"type": "object",
203-
"properties": {
204-
"url": {
205-
"type": "string",
206-
"description": "URL to the authority."
207-
},
208-
"type": {
209-
"type": "string",
210-
"description": "Type of definition for authority: v2.3 adds standard values: `businessDefinition`, `transformationImplementation`, `videoTutorial`, `tutorial`, and `implementation`.",
211-
"examples": ["businessDefinition", "transformationImplementation", "videoTutorial", "tutorial", "implementation"]
212-
}
213-
},
214-
"required": ["url", "type"]
215-
}
199+
"$ref": "#/$defs/AuthoritativeDefinitions"
216200
},
217201
"dataGranularity": {
218202
"type": "string",
@@ -304,8 +288,7 @@
304288
"examples": ["confidential", "restricted", "public"]
305289
},
306290
"authoritativeDefinitions": {
307-
"type": "string",
308-
"description": "List of links to sources that provide more detail on column logic or values; examples would be URL to a GitHub repo, Collibra, on another tool."
291+
"$ref": "#/$defs/AuthoritativeDefinitions"
309292
},
310293
"encryptedColumnName": {
311294
"type": "string",
@@ -409,6 +392,25 @@
409392
},
410393
"required": ["templateName", "toolName"]
411394
},
395+
"AuthoritativeDefinitions": {
396+
"type": "array",
397+
"description": "List of links to sources that provide more details on the table; examples would be a link to an external definition, a training video, a GitHub repo, Collibra, or another tool. Authoritative definitions follow the same structure in the standard.",
398+
"items": {
399+
"type": "object",
400+
"properties": {
401+
"url": {
402+
"type": "string",
403+
"description": "URL to the authority."
404+
},
405+
"type": {
406+
"type": "string",
407+
"description": "Type of definition for authority: v2.3 adds standard values: `businessDefinition`, `transformationImplementation`, `videoTutorial`, `tutorial`, and `implementation`.",
408+
"examples": ["businessDefinition", "transformationImplementation", "videoTutorial", "tutorial", "implementation"]
409+
}
410+
},
411+
"required": ["url", "type"]
412+
}
413+
},
412414
"Pricing": {
413415
"type": "object",
414416
"properties": {

0 commit comments

Comments
 (0)