We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
example:
{ "name": "payload", "doc": "Payload of the message.", "type": { "name": "payload", "type": "record", "fields": [ { "name": "from", "type": "int" }, { "name": "import", "type": "int" } ] } }
would generate:
class payload(BaseModel): from: int import: int
The text was updated successfully, but these errors were encountered:
maybe it could do something like
class payload(BaseModel): from_: int = Field(alias="from") import_: int = Field(alias="import")
Sorry, something went wrong.
solution should cover all reserved keywords https://www.w3schools.com/python/python_ref_keywords.asp
No branches or pull requests
example:
would generate:
The text was updated successfully, but these errors were encountered: