Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define primaryKey and examples for model to follow the changes in datacontract-specification v1.1.0 #559

Conversation

syou6162
Copy link
Contributor

@syou6162 syou6162 commented Dec 20, 2024

In datacontract-specification v1.1.0, the model-level primaryKey and examples were added to the fields.

However, the addition of model-level primaryKey and examples was not reflected in the implementation of datacontract-cli, so we added it.


This pull request is mainly for #562, but since defining primaryKey and examples is a topic that goes beyond dbt-style imports, I've split it out into this pull request.

  • Tests pass
  • ruff format
  • README.md updated (if relevant)
  •  CHANGELOG.md entry added

@syou6162 syou6162 changed the title Define primaryKey and examples for model Define primaryKey and examples for model Dec 20, 2024
@syou6162 syou6162 force-pushed the fix/define_model_level_primaryKey_and_examples branch from ef57157 to ff6ec61 Compare December 20, 2024 18:01
@syou6162 syou6162 changed the title Define primaryKey and examples for model Define primaryKey and examples for model to follow the changes in v1.1.0 Dec 20, 2024
@syou6162 syou6162 changed the title Define primaryKey and examples for model to follow the changes in v1.1.0 Define primaryKey and examples for model to follow the changes in datacontract-specification v1.1.0 Dec 20, 2024
@syou6162 syou6162 marked this pull request as ready for review December 20, 2024 18:08
@syou6162
Copy link
Contributor Author

Once this pull request has been approved and merged, I will set #562 to ready for review.

@jochenchrist
Copy link
Contributor

Thanks for your contribution!

@jochenchrist jochenchrist merged commit 2f98baf into datacontract:main Dec 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants