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

Validate model schema #4

Open
briggySmalls opened this issue Oct 2, 2019 · 2 comments
Open

Validate model schema #4

briggySmalls opened this issue Oct 2, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@briggySmalls
Copy link
Owner

Tools such as json-schema exist for validating that json meets a predefined schema.

Any provided model to core should be validated against a schema.

Given golang seems only to have a json-schema validator, perhaps core should aim to work only with JSON. Or convert yaml to JSON in order to validate it like that.

@briggySmalls briggySmalls added the enhancement New feature or request label Feb 25, 2020
@briggySmalls
Copy link
Owner Author

Note that this would also be useful for documentation

@briggySmalls
Copy link
Owner Author

I'm actually less keen on this. With UnmarshalStrict we do a bit of schema checking already. This issue would just guard against extra unused fields being present.

That would be better. But not as useful as I originally thought.

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