Skip to content

Conversation

axc450
Copy link

@axc450 axc450 commented Feb 17, 2023

Adds support for empty JSON body inputs in the generated Swagger documentation:

image

The code is essentially just ignoring any arguments with a None name, so if it is the sole argument you can have an empty input:

empty_json_parser = RequestParser()
empty_json_parser.add_argument(None, location="json")

If there is a better way to do this or it is already supported, please let me know!

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