-
Notifications
You must be signed in to change notification settings - Fork 100
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
OpenAPI construction #499
base: main
Are you sure you want to change the base?
OpenAPI construction #499
Conversation
@c-wygoda Whats the reason for this change? |
We want to be able to specify more of the OpenApi metadata fields and in the process I found the customize_openapi method to be a rather redundant wrapper around the OpenApi functionality, if the FastAPI params are used directly in the attribute definition of the |
This would also tackle #454 if I'm not mistaken. |
I agree, this code is leftover from years ago before this project was open sourced when customization of OpenAPI was less flexible. Now
There is precedence to define openapi related things in Note to self that at some point in the future we should deprecate |
Thanks. I'm happy to help as I'm responsible for an instance, so hopefully can contribute more. Direct feedback welcome as I slowly learn the ropes of this project... |
How can I help to move forward? More test coverage? |
@geospatial-jeff ping |
@jonhealy1 I think we should use this instead of #639 (we would need to update the landing page) |
I'm not 💯 what we should do. This kinda breaking change so definitely something we should keep for 3.0, but at the same time #639 does almost the same thing without breaking anything. Both PR fixes stuff but do not represent the best solution to the issue:
IMO we should wait after 2.5 to be released and see if we can refactor a bit to accommodate both changes cc @jonhealy1 |
This PR should add some documentation how to set the env variables... |
in #639 we implemented part of the proposed solution, Let's wait after 2.5 release to |
Related Issue(s):
Description:
stac_api.api.app:StacAPi.customize_openapi
method as it unnecessarily wraps theFastApi.openapi
call.PR Checklist:
pre-commit run --all-files
)make test
)make docs
)