Skip to content
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

Remove all vnd.collection+json content from OpenAPI spec #580

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

jennydaman
Copy link
Contributor

This PR defines a postprocessing hook for drf-spectacular to remove all vnd.collection+json media types from the OpenAPI spec.

The application/vnd.collection+json media type is inconvenient (and somewhat inefficient) for client code to deal with. It is an obscure spec that isn't used much elsewhere. Most importantly, it causes OpenAPI generated clients to be broken out-of-the-box.

@jennydaman jennydaman merged commit 5ca0271 into FNNDSC:master Oct 1, 2024
5 checks passed
@jennydaman jennydaman deleted the openapi-delete-collectionjson branch October 1, 2024 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant