Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Default values for webargs #32
Now that webargs is using marshmallow internally, we specify default argument values using the
But apispec doesn't check the
Which isn't ideal.
Since we're using the same logic to introspect fields and schemas that are used for serialization and deserialization, one approach would be to tell
I don't have the whole webargs history in mind, maybe this was correct back then, but I think current behaviour is partly wrong.
Here's what OpenAPI docs say about default parameters:
We should use the
Note that if used in a REST API, the result is pretty much the same from user perspective. If using
Anyway, when adding a schema definition, I think we should use
I was about to remove the