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

Fix and update deprecated primary field usage #568

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

DiegoGCh
Copy link

@DiegoGCh DiegoGCh commented Dec 26, 2024

Fixed the use of the primaryKey field since primary is a deprecated field according to its usage in datacontract-specification and as indicated in datacontract.schema.json.

Edited the exporters, importers, examples, and Jinja templates that used the primary field to also accept the primaryKey field, thus generating backward compatibility.

Fixing the problem as mentioned in #518 .

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

@DiegoGCh
Copy link
Author

The main and most important changes are inside the commits 1f1a53c and dc1489b. Which they fix the respective files so that either primary or primaryKey field is accepted as a way to create backwards compatibility.

The more lengthy changes are only renames of occurrences from primary to primaryKey inside the commit a9812d2.

Any feedback regarding this PR is welcome! @jochenchrist

@DiegoGCh DiegoGCh marked this pull request as ready for review December 30, 2024 18:32
@jochenchrist
Copy link
Contributor

Great contribution, thanks

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