-
Notifications
You must be signed in to change notification settings - Fork 42
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
Describe query parameters in OpenAPI schema #166
Merged
CasperWA
merged 9 commits into
Materials-Consortia:master
from
CasperWA:close_164_query_param_descriptions
Feb 6, 2020
Merged
Describe query parameters in OpenAPI schema #166
CasperWA
merged 9 commits into
Materials-Consortia:master
from
CasperWA:close_164_query_param_descriptions
Feb 6, 2020
Commits on Feb 6, 2020
-
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.
Configuration menu - View commit details
-
Copy full SHA for 5770c8d - Browse repository at this point
Copy the full SHA 5770c8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3809927 - Browse repository at this point
Copy the full SHA 3809927View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e06105 - Browse repository at this point
Copy the full SHA 9e06105View commit details -
Configuration menu - View commit details
-
Copy full SHA for b11623c - Browse repository at this point
Copy the full SHA b11623cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f8c485 - Browse repository at this point
Copy the full SHA 7f8c485View commit details -
Update
dimension_types
schema/modelUsing `IntEnum` and pydantic's `Field` parameters to perform validation of the property, `dimension_types` is now represented correctly in the OpenAPI schema as well.
Configuration menu - View commit details
-
Copy full SHA for 2f41f09 - Browse repository at this point
Copy the full SHA 2f41f09View commit details -
Use List and Tuple for list of lists - no conlist
Remove and replace `conlist` with List of Tuples containing the exact number of components needed, i.e., List[Tuple[Union[float, None]]] means the value MUST be [ [ null ], [ 1.0 ], [ 0 ], ... ]. The internal "lists" MUST be of length 1, if more types are added in Tuple _that_ is the exact allowed length of the internal "lists". For `lattice_vectors` the outer list has also been constrained via pydantic's `Field` using `min_items` and `max_items`. Some "bad" and "good" test structures have been added to be tested in `test_models.py`.
Configuration menu - View commit details
-
Copy full SHA for 1693e1b - Browse repository at this point
Copy the full SHA 1693e1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e7f275 - Browse repository at this point
Copy the full SHA 0e7f275View commit details -
Use Tuple over List for constrained lists
Co-authored-by: Shyam Dwaraknath <shyamd@lbl.gov>
Configuration menu - View commit details
-
Copy full SHA for d09595b - Browse repository at this point
Copy the full SHA d09595bView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.