Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special input parameter support #277

Open
Chise1 opened this issue Sep 11, 2022 · 0 comments
Open

Special input parameter support #277

Chise1 opened this issue Sep 11, 2022 · 0 comments

Comments

@Chise1
Copy link

Chise1 commented Sep 11, 2022

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"),
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

No branches or pull requests

1 participant