Skip to content

Fix Back Compat Model Factory Methods to Have All Required Properties #11831

Description

These recent changes attempted to fix an issue where the generated model factory methods would cause ambiguous calls for callers. The latest regen shows that several libraries have back compat factory methods that are labeled with EBN, but all of their parameters are optional. This is incorrect and should be flipped. The method that is EBNd should have all required parameters. As part of this, we need to ensure that we do a best effort of not generating methods that would be ambiguous with any other custom methods that exist.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions