-
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
Stricten requirements on base info fields #1492
Comments
Do you mean specifically in the OpenAPI schema @merkys ? We already validate against these constraints (except format, as shown in the linked code) but perhaps we could also patch them into the output schema |
Oh right! I meant I would like to see them in the OpenAPI schema. |
That we can do! I'll take a look before we release 1.2 |
Thanks, this would be nice to have. Then multipurpose OpenAPI/JSON validators would validate OPTIMADE responses with similar level of strictness. |
The cited fields in OPTIMADE have quite strictly defined values, IMO:
optimade-python-tools/optimade/models/baseinfo.py
Lines 71 to 80 in 5160a2c
formats
must match regex^(json|_.*)$
available_endpoints
are as well limited to the supported endpoints plus^_
entry_types_by_format
are essentially limited by the same requirementsThe text was updated successfully, but these errors were encountered: