ADX-959 Make schemas in unaids-data-specification compatible with upstream frictionless/ckanext-validation #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
https://fjelltopp.atlassian.net/browse/ADX-959
Note: keeping this as draft until our scheming and validation changes are ready to be merged
This updates our table schemas to match the latest Frictionless Framework v5 schemas: https://specs.frictionlessdata.io/table-schema/#language
Not all files requires changing, those that have have been updated with the existing version method.
Most changes were fields with a missing type but there was also a primary key typo and other small bits and bobs.
Testing
So... this is up for discussion. Currently we don't do any testing and actually I found at least one typo and several missing "type" declarations in our existing schemas.
The files I tested against where available in dev at: https://dev.adr.fjelltopp.org/country-estimates-23/united-kingdom-country-estimates-2023
I have been testing this with the below script (see code block at bottom) - we could easily turn this into an automated test that runs through a GitHub action on PR?
Checklist