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

Consistent validation with pydantic & vocpub (disallow None) #175

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Conversation

dalito
Copy link
Member

@dalito dalito commented Oct 30, 2023

None is not allowed according to the vocpub profile but the pydantic model accepted it. The pydantic model is changed to also only allow dates. Two tests were wrong and have been changed.

This PR also changes the default version of the concept scheme in CI from None to the string "automatic" which conveys more clearly what is happening: The version is automatically derived and added to the build artifacts but not present in git.

Closes #174

None is not allowed according to the vocpub profile but the pydantic
model accepted it. The pydantic model is changed to only allow dates.

This also changes the default version from None to "automatic" which
conveys more clearly what is happening (version is automatically
derived and added in merge CI action of vocabulary).
@dalito dalito added the bug Something is not working as expected. label Oct 30, 2023
@dalito dalito added this to the 0.7.7 milestone Oct 30, 2023
@dalito dalito self-assigned this Oct 30, 2023
@dalito dalito merged commit eca38e3 into main Oct 30, 2023
3 checks passed
@dalito dalito deleted the issue174 branch October 30, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent validation of CS modified date in pydantic vs. shacl/vocpub-profile
1 participant