-
Notifications
You must be signed in to change notification settings - Fork 2
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 OpenAPI schemas from optimade-python-tools
v0.22.1
#8
Conversation
This discussion above should be resolved by 3cf0e77, with the schemas that will be released shortly under optimade-python-tools v0.19.5 (not yet merged). @merkys This basically reverts the |
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.
I am happy about reduced constraints for page_number
, thanks!
However, some of the new constraints for formulas do not stem from the specification, but rather from the changes I have made in Materials-Consortia/optimade-python-tools#986 without having them properly discussed, as I did after the fact in Materials-Consortia/OPTIMADE#388. I will ping the thread to hopefully clean up the mess I made 😅
openapi/v1.1.0/optimade.json
Outdated
}, | ||
"chemical_formula_reduced": { | ||
"title": "Chemical Formula Reduced", | ||
"pattern": "^([A-Z][a-z]?\\d*)*$", | ||
"pattern": "^([A-Z][a-z]?([2-9]|[1-9]\\d+)?)+$", |
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.
The new pattern seems to reflect constraints I have suggested in Materials-Consortia/OPTIMADE#388. However, the issue does not seem resolved and constraints are not explicitly expressed in OPTIMADE specification.
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.
Thanks for looking at this so carefully @merkys, I'll add my comments to that issue
optimade-python-tools
v0.19.1optimade-python-tools
v0.20.1
7e999cb
to
3cf0e77
Compare
optimade-python-tools
v0.20.1optimade-python-tools
v0.22.1
I think this can be safely merged now, after undoing the additional constraints on chemical formulae. This PR also now adds fixes associated with |
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.
Looks good!
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.
LGTM
Various improvements to the OpenAPI schemas:
application/json
->application/vnd.api+json
)page_number
(see Add OpenAPI schemas fromoptimade-python-tools
v0.22.1 #8 (comment))page_above
andpage_below
type