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: Update schema to detect duplicates #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ermshiperete
Copy link

This change updates the schema as suggested in #17 to detect duplicates in tags. It also adds a unit tests to detect duplicates that appear in multiple entries, as suggested in #16.

This change does not update the data and thus will cause failing tests.

This change updates the schema as suggested in silnrsi#17 to detect duplicates
in tags. It also adds a unit tests to detect duplicates that appear in
multiple entries, as suggested in silnrsi#16.

This change does not update the data and thus will cause failing tests.
@mhosken
Copy link
Contributor

mhosken commented May 7, 2024

Could you remove the need for unique items in latnnames, as described in #17 and the docs. Also I have just added an identical test to the tests (in test_supplemental.py) so that's probably not needed. But thank you for creating a PR and working it through.

},
"latnnames": {
"type": "array",
"items": { "type": "string" }
"items": { "type": "string" },
"uniqueItems": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need not be unique. The key is that each entry aligns with a corresponding entry in the localnames array.

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