Skip to content

Comments

Mitigate breaking change of optional parameter change for ModelFactory#4026

Merged
live1206 merged 43 commits intoAzure:feature/v3from
live1206:overload-breakingchange
Jan 17, 2024
Merged

Mitigate breaking change of optional parameter change for ModelFactory#4026
live1206 merged 43 commits intoAzure:feature/v3from
live1206:overload-breakingchange

Conversation

@live1206
Copy link
Member

@live1206 live1206 commented Dec 8, 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

This feature is only enabled for Mgmt.

  • For DPG, there is no GA version yet, ApiCompatVersion is not set in .csproj
  • For HLC, there are quite some hand-written/custom code, which is not supported by TypeFactory.TryCreateType since CsharpType does not represent them properly for now.

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

Pending on Azure/azure-sdk-for-net#41322

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