-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add support levels to validator config #503
Conversation
Codecov Report
@@ Coverage Diff @@
## master #503 +/- ##
==========================================
- Coverage 91.59% 91.55% -0.05%
==========================================
Files 62 62
Lines 3119 3127 +8
==========================================
+ Hits 2857 2863 +6
- Misses 262 264 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
7a6c192
to
33d7dea
Compare
197b3af
to
3c3f3d3
Compare
This PR now contains the changes from #511, happy to review as one PR or two. |
… of them in the validator
3c3f3d3
to
b6267a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @ml-evs
Some suggested changes inbound.
Concerning your OP null
or None
is considered a valid value for any property by the OPTIMADE API specification, I believe (then of course for some properties it is not allowed, but that always stated clearly). So this should definitely be allowed. But we can of course remark on it, as information, and later remove the remark if developers find it off-putting.
Co-authored-by: Casper Welzel Andersen <[email protected]>
f9cc110
to
162d246
Compare
Thanks for the review @CasperWA!
I've just addressed this in the last commit: this now only fails if the field is a "MUST" field, otherwise it just skips. This will still fail if the field isn't returned by the implementation by default, but I'm fixing that in #515 as its a bit more involved. |
Actually this opens a can of worms (our server would fail it - #516) and needs #504 to be in first... I'll make a separate PR that add this commit to the validator (#517) |
2389642
to
162d246
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, minor things that you can take or leave.
Co-authored-by: Casper Welzel Andersen <[email protected]>
e4d9e97
to
eabb60b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get in
This PR adds the concept of support queryability from the model schemas into the validator config.
This allows for some changes in the validator to enable running query checks on specification fields where implementations have not explicitly provided the type in their
/info
endpoints.One consequence of this that we can discuss... if a field is present in the
/info/<entry>
of an implementation, the validator will report a failure in two cases (where it didn't before):I think I'm fine with 2. but 1. feels like more of a grey area...
Still to-do (in this PR or elsewhere):