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
Validator treats top-level 'included' array as mandatory #393
Labels
validator
Related to the OPTIMADE validator
Comments
Thanks for this @merkys, looks like the problem is:
which wasn't updated properly when pydantic switched to |
ml-evs
added a commit
that referenced
this issue
Jul 17, 2020
* Give validator patched `included` a default value to make it really optional (closes #393) * Validate relationships data as a list before testing type (closes #397) * Improve --verbosity help string for validator (closes #396) * Add concept of InternalErrors to validator These errors should be handled differently to ValidationError and ResponseError as they indicate a problem with the validator itself. * Added validator flags --fail_fast and --skip_optional_tests * Improvements to pagination validation - Allow links objects to be passed in pagination - Enforced maximum recursion depth (5) for pagination tests * Reduce set of example queries from the specification, pending future improvements (#357) * Improve error message for single entry endpoint if deserialization fails * Implemented suggestions from code review Co-authored-by: Casper Welzel Andersen <CasperWA@users.noreply.github.com> * Renamed entrypoint optimade_validator->optimade-validator * Flip arg options the "standard" way around Use -t for --as-type (instead of -a). Co-authored-by: Casper Welzel Andersen <casper.andersen@epfl.ch> Co-authored-by: Andrius Merkys <andrius.merkys@gmail.com>
I confirm this is fixed as of v0.10.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to validate COD implementation (in development) using
optimade-python-tools
v0.9.8. The validator seems to insist on the existence of top-levelincluded
array, which is clearly optional, according to OPTIMADE specification:The text was updated successfully, but these errors were encountered: