Commit 5e3b31f
committed
[python-fastapi] Default default value ... instead of None (#22494)
With various FastAPI parameters (Query, Path, Header, Cookie, Body,
Form, and File) the default value of None is a valid value, but
signifies that the parameter is optional. To allow for required
parameters, default should either not be set at all or be set to '...'
(ellipsis).
Issue: #224941 parent 03c13fb commit 5e3b31f
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- modules/openapi-generator/src/main/resources/python-fastapi
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments