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

[Bug]: Duplicate type name on openAPI generation with Read Template #6184

Open
hegewald opened this issue Feb 27, 2025 · 0 comments
Open

[Bug]: Duplicate type name on openAPI generation with Read Template #6184

hegewald opened this issue Feb 27, 2025 · 0 comments

Comments

@hegewald
Copy link

Error during generation for openAPI.

error @typespec/openapi/duplicate-type-name: Duplicate type name: 'ContactInfo'. Check @friendlyName decorators and overlap with types in TypeSpec or service namespace.

Playground Link

model ContactInfo {  
    contactInfoId: int64;
    email: string;
}

model Parent { 
    id: int64;
    contactInfo: ContactInfo;
}

model ReadParent is Read<Parent, "Parent">;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant