Skip to content

fix(dpg): incorrect enum convenience/protocol parameter conversion#3898

Merged
archerzz merged 8 commits intoAzure:feature/v3from
archerzz:fix-enum-convenience-protocol-param-conversion
Nov 10, 2023
Merged

fix(dpg): incorrect enum convenience/protocol parameter conversion#3898
archerzz merged 8 commits intoAzure:feature/v3from
archerzz:fix-enum-convenience-protocol-param-conversion

Conversation

@archerzz
Copy link
Copy Markdown
Member

@archerzz archerzz commented Nov 2, 2023

Description

  • add missing logic to convert method parameter of int/float enum types from convenience to protocol
  • add temporary test case

fix #3881

Checklist

To ensure a quick review and merge, please ensure:

  • The PR has a understandable title and description explaining the why and what.
  • The PR is opened in draft if not ready for review yet.
    • If opened in draft, please allocate sufficient time (24 hours) after moving out of draft for review
  • The branch is recent enough to not have merge conflicts upon creation.

Ready to Land?

  • Build is completely green
    • Submissions with test failures require tracking issue and approval of a CODEOWNER
  • At least one +1 review by a CODEOWNER
  • All -1 reviews are confirmed resolved by the reviewer
    • Override/Marking reviews stale must be discussed with CODEOWNERS first

- add missing logic to convert method parameter of int/float enum types from convenience to protocol
- add temporary test case

fix Azure#3881
@archerzz
Copy link
Copy Markdown
Member Author

archerzz commented Nov 2, 2023

@chunyu3
Copy link
Copy Markdown
Member

chunyu3 commented Nov 3, 2023

@archerzz Please add tests in cadl-ranch.

@archerzz
Copy link
Copy Markdown
Member Author

archerzz commented Nov 3, 2023

Regen Preview: Azure/azure-sdk-for-net#39720

No actual change

@JoshLove-msft
Copy link
Copy Markdown
Member

Can this be merged?

@archerzz
Copy link
Copy Markdown
Member Author

archerzz commented Nov 9, 2023

blocked by #3917

@archerzz archerzz merged commit 2134917 into Azure:feature/v3 Nov 10, 2023
@archerzz archerzz deleted the fix-enum-convenience-protocol-param-conversion branch November 10, 2023 02:32
@archerzz
Copy link
Copy Markdown
Member Author

@JoshLove-msft This PR has been merged. It should unblock your work on the enum parameters.

live1206 pushed a commit to live1206/autorest.csharp that referenced this pull request Dec 11, 2023
…zure#3898)

- add missing logic to convert method parameter of int/float enum types from convenience to protocol
- add temporary test case

fix Azure#3881
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 this pull request may close these issues.

Generated code using an enum of ints does not compile

5 participants