From ff6ec618683f54ee1dcf16223e541fdfb4e00995 Mon Sep 17 00:00:00 2001 From: Yasuhisa Yoshida Date: Sat, 21 Dec 2024 02:42:38 +0900 Subject: [PATCH 1/2] Define primaryKey and examples for model --- datacontract/model/data_contract_specification.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datacontract/model/data_contract_specification.py b/datacontract/model/data_contract_specification.py index 2af37781..beee7b44 100644 --- a/datacontract/model/data_contract_specification.py +++ b/datacontract/model/data_contract_specification.py @@ -186,6 +186,8 @@ class Model(pyd.BaseModel): title: Optional[str] = None fields: Dict[str, Field] = {} quality: List[Quality] | None = [] + primaryKey: List[str] | None = [] + examples: List[Any] | None = None config: Dict[str, Any] = None tags: List[str] | None = None From 209d6f2c568ff440d5dd51c11f210b78ce145e89 Mon Sep 17 00:00:00 2001 From: Yasuhisa Yoshida Date: Sat, 21 Dec 2024 03:08:14 +0900 Subject: [PATCH 2/2] Updated CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29bbe1af..a02bb7ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added ### Changed +- Define primaryKey and examples for model to follow the changes in datacontract-specification v1.1.0 (#559) ## [0.10.16] - 2024-12-19