forked from Materials-Consortia/optimade-python-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Describe query parameters in OpenAPI schema
Remove PEP8 E251/E252 (unexpected spaces around keyword / parameter equals) from lint warnings. Update `page_page` to `page_number` according to Materials-Consortia/OPTIMADE#187. Due to pydantic: https://pydantic-docs.helpmanual.io/usage/schema/#unenforced-field-constraints the `ge` parameter cannot be used together with a non-standard type, e.g. NonnegativeInt. Instead the OpenAPI parameter is set directly, here `minimum`. Regular expressions are added for `response_fields` and `sort` based on the regular expressions provided for an `identifier` in the OPTiMaDe spec.
- Loading branch information
Showing
5 changed files
with
217 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.