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

The generate code contains interfaces with duplicate names in latest cadl ranch #2902

Open
v-jiaodi opened this issue Nov 12, 2024 · 0 comments
Labels
P1 priority 1 RLC

Comments

@v-jiaodi
Copy link
Member

v-jiaodi commented Nov 12, 2024

RLC versioning/removed

clientDefinitions.ts

export interface V2 {
  post(options: V2Parameters): StreamableMethod<V2200Response>;
}

export interface ModelV3 {
  /** This operation will pass different paths and different request bodies based on different versions. */
  post(options: ModelV3Parameters): StreamableMethod<ModelV3200Response>;
}

models.ts

export interface ModelV2 {
  prop: string;
  enumProp: EnumV2;
  unionProp: UnionV2;
}

export interface ModelV3 {
  id: string;
  enumProp: EnumV3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 priority 1 RLC
Projects
None yet
Development

No branches or pull requests

2 participants