Skip to content

Conversation

@OscarVanL
Copy link
Contributor

Fixes #1505

Also helps with similar issues encountered in #1192 and #1515.

This ensures that when openapi_extra is set on an API route, and the dict contents conflict with a list element already assigned by Ninja's own generation, the list elements are combined.

Previously, whatever Ninja set got overwritten. This meant that in examples like my test case, the path parameter would be missing from the API spec.

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.

[BUG] Specifying parameters in openapi_extras overrides query parameters, rather than appending them

2 participants