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

Autorest emitter wrongfully qualifies other enums as the versioning enum #838

Closed
timotheeguerin opened this issue May 15, 2024 · 0 comments · Fixed by #839
Closed

Autorest emitter wrongfully qualifies other enums as the versioning enum #838

timotheeguerin opened this issue May 15, 2024 · 0 comments · Fixed by #839
Assignees
Labels
bug Something isn't working needs-area

Comments

@timotheeguerin
Copy link
Member

timotheeguerin commented May 15, 2024

Playground Link

This means the enum gets omitted if it is unreferenced

@timotheeguerin timotheeguerin added the bug Something isn't working label May 15, 2024
@timotheeguerin timotheeguerin self-assigned this May 15, 2024
timotheeguerin added a commit that referenced this issue May 15, 2024
…s` is not set to true (#839)

fix #838

The `isVersionEnum` function was just completely wrong and just returned
true for any enum when used in a versioned spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-area
Projects
None yet
1 participant