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

Validation tool #69

Open
stufraser1 opened this issue Apr 5, 2022 · 0 comments
Open

Validation tool #69

stufraser1 opened this issue Apr 5, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@stufraser1
Copy link
Collaborator

stufraser1 commented Apr 5, 2022

Creating the mapping files has been termed 'fragile' - easy for users to make an error when editing them, and it being hard to locate the error causing a transform to fail. This will be helped by error handling, but also a mapping file validator.

This should validate that all sections of mapping file are present and recognised:
-[ ] Mandatory commands (e.g., types, forward, etc.) are included and with correct spelling
-[ ] Whether optional commands (reverse) are included and with correct spelling
-[ ] That each data type is recognised
-[ ] That field names are recognised (requires a lookup to the model field names)
-[ ] That mapping files contain the fields contained within the data file to be transformed?
-[] indentation correct
-[] unexpected charcaters e.g. Unexpected character in 'GeogScheme1 = "CRESTA"': '=' at position 13

See #14 for some issues identified

To be added to...

@stufraser1 stufraser1 added the enhancement New feature or request label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant