Skip to content

Comments

Mitigate breaking change for optional parameter change#3686

Merged
live1206 merged 57 commits intoAzure:feature/v3from
live1206:overload-mitigation
Dec 8, 2023
Merged

Mitigate breaking change for optional parameter change#3686
live1206 merged 57 commits intoAzure:feature/v3from
live1206:overload-mitigation

Conversation

@live1206
Copy link
Member

@live1206 live1206 commented Aug 24, 2023

Fixes #3596.

This PR introduces SignatureType, it holds three portions of code:

  • current
  • custom
  • baseline contract
    current union custom compare with previous contract outputs the changeset, with it we can apply different rules with

It provides

  • OverloadingMethods: for now represents the missing methods in baseline contract due to additional optional parameters in the new contract, this is causing breaking changes
  • MethodsToSkip: represents the methods already defined in custom code, the writer should skip them while writing to the output

@live1206 live1206 added the Mgmt This issue is related to a management-plane library. label Aug 24, 2023
@live1206
Copy link
Member Author

@m-nash Please take a look at this PR, it mitigates breaking changes for additional optional parameters in model factory.

@live1206 live1206 requested a review from hallipr as a code owner December 4, 2023 03:17
@live1206 live1206 merged commit 10de73e into Azure:feature/v3 Dec 8, 2023
@live1206 live1206 deleted the overload-mitigation branch December 8, 2023 03:04
live1206 added a commit to live1206/autorest.csharp that referenced this pull request Dec 8, 2023
live1206 added a commit that referenced this pull request Dec 8, 2023
live1206 added a commit to live1206/autorest.csharp that referenced this pull request Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management-plane library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Overload function to allow method signature change for Model Factory - parameter

4 participants