Open axc450 opened 1 year ago
Adds support for empty JSON body inputs in the generated Swagger documentation:
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:
None
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!
Adds support for empty JSON body inputs in the generated Swagger documentation:
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:If there is a better way to do this or it is already supported, please let me know!