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

Add backward compatibility method for property order change #5198

Open
Tracked by #1850
pshao25 opened this issue Dec 12, 2024 · 0 comments
Open
Tracked by #1850

Add backward compatibility method for property order change #5198

pshao25 opened this issue Dec 12, 2024 · 0 comments
Labels
CodeGen Issues that relate to code generation v3 Version 3 of AutoRest C# generator.

Comments

@pshao25
Copy link
Member

pshao25 commented Dec 12, 2024

When we migrate from swagger to TypeSpec, there is a chance that the model property change. See this Azure/typespec-azure#1979.

Though the above issue can get around, to be more generic, user could still change the property order in new version, which is a breaking change for model factory. We need to add the backward compatibility method to avoid breaking change.

@pshao25 pshao25 added the v3 Version 3 of AutoRest C# generator. label Dec 12, 2024
@ArthurMa1978 ArthurMa1978 added the CodeGen Issues that relate to code generation label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CodeGen Issues that relate to code generation v3 Version 3 of AutoRest C# generator.
Projects
None yet
Development

No branches or pull requests

2 participants