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

field named async generates invalid code #600

Closed
brunnels opened this issue Nov 2, 2021 · 2 comments · Fixed by #607
Closed

field named async generates invalid code #600

brunnels opened this issue Nov 2, 2021 · 2 comments · Fixed by #607

Comments

@brunnels
Copy link

brunnels commented Nov 2, 2021

Here's what gets generated:

    async: Optional[str] = field(
        default=None,
        metadata={
            "type": "Element",
            "nillable": True,
        }
    )

Here's what I edited it to fix it but I haven't tested that the resulting xml looks right yet.

    async_: Optional[str] = field(
        default=None,
        metadata={
            "type": "Element",
            "nillable": True,
            "name": "async"
        }
    )
tefra added a commit that referenced this issue Nov 2, 2021
@tefra
Copy link
Owner

tefra commented Nov 2, 2021

closed in #602

Thanks for reporting @brunnels

@tefra
Copy link
Owner

tefra commented Nov 7, 2021

I though I had pushed this one, sorry about, really closed in #607

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

Successfully merging a pull request may close this issue.

2 participants