fastapi-code-generator
fastapi-code-generator copied to clipboard
Special input parameter support
An error is reported when a function variable is a Python keyword. Like this:
"parameters": [
{
"name": "from",
"in": "query",
"description": "起点坐标,39.071510,117.190091",
"required": true,
"schema": {
"type": "string"
}
},
...
Maybe you should generate something like this:
from_: str=Field(alias="from"),