You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@typespec/openapi/duplicate-type-name
Duplicate type name: 'Foo'. Check @friendlyName decorators and overlap with types in TypeSpec or service namespace.
import"@typespec/http";
using TypeSpec.Http;
@service({title: "Test Service",})namespaceDemoService;modelFoo is TrackedResource{
@pathname: string;}modelResource{}modelTrackedResourceextendsResource{}
Does not repro when without an extends chain 3 deep or more.
the problems comes from the fact that we use Visibility.all to render the unreachable models but when figuring out if the properties are the same we use Visibility.read so Foo gets emitted with both.
Describe the bug
Simple model definition generates:
Reproduction
Playground link
Checklist
The text was updated successfully, but these errors were encountered: