alphagov / data-standards-authority

Collaboration space for working on data standards and guidance for the DSA
https://alphagov.github.io/data-standards-authority/
Other
24 stars 11 forks source link

Validate keys in data files #138

Closed jamietanna closed 2 years ago

jamietanna commented 2 years ago

To make sure that the keys used for data files stay aligned with the expected naming standards, we should make sure that we add logic to validate these.

As we can do this with a single regex (for now) we can add this to the is_data_file_schema_compliant method, and report any issues to the user, with a human-readable error for what has failed, and why.

Closes #137.