-
Notifications
You must be signed in to change notification settings - Fork 337
Add backcompat support for top parameter #9645
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 backcompat support for top parameter #9645
Conversation
…xCount Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Updated the backward compatibility documentation with a new section covering the
Commit: 1309792 |
@copilot we need to change this to Parameter Naming since it contains scenarios that are not about casing. |
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Renamed the section from "Parameter Name Casing" to "Parameter Naming" in both the table of contents and section heading. Also updated the section description to reflect that it covers parameter name corrections, standardization, and conversions to follow naming conventions. Commit: 9e29f22 |
...peSpec.Generator.ClientModel/test/Providers/CollectionResultDefinitions/ListPageableTests.cs
Outdated
Show resolved
Hide resolved
...sharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/RestClientProvider.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
...sharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/RestClientProvider.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
...sharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/RestClientProvider.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
...sharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/RestClientProvider.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
|
No changes needing a change description found. |
Plan: Add backward compatibility support for
topparameter conversionBased on PR #9505 which added conversion from
toptomaxCount, implement similar backward compatibility as was done formaxPageSizerecasing.Changes Required:
Understand the issue and existing code
Implement backward compatibility for top parameter
GetCorrectedParameterNamehelper method that takes originalName, updatedName, and clientAdd/update tests
TopParameterPreservedWhenExistsInLastContractViewto validate LastContractView scenarioRun tests and validate changes
Update documentation
Refactor to eliminate code duplication
GetCorrectedParameterNamehelper methodGetCorrectedPageSizeNameandGetCorrectedMaxCountNameImprove code organization
Simplify method signature
Optimize parameter name correction logic
Original prompt
topparameter #9643💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.