Skip to content

Handle Parameter Type Changes in Service Methods #11223

Description

@jorgerangel-msft

This has occurred at least once in Azure.AI.Translation.Document.

Changing a parameter type in a GAd library is a breaking change:

 public virtual Azure.Response<Azure.AI.Translation.Document.SupportedFileFormats> GetSupportedFormats(Azure.AI.Translation.Document.FileFormatType? type = default(Azure.AI.Translation.Document.FileFormatType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }

to

public virtual Azure.Response<Azure.AI.Translation.Document.SupportedFileFormats> GetSupportedFormats(Azure.AI.Translation.Document.FileFormatType type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }

We should add back compat support to detect this scenario and avoid generating a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpfeatureNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions