Open brrusino opened 3 days ago
I was able to create a simple repro: Playground
This happens whether emitAllModels
is true or false.
~Something about spreading a model that contains a Record instantiated with a union where one of the variants is a model reference.~
This is seen in the wild with usage of Azure.ResourceManager.ManagedServiceIdentityProperty
Another note - I tested the simple repro with @typespec/compiler
and @typespec/json-schema
version 0.55.0 and they encounter the same issue - so I suspect there were changes to some other TypeSpec libraries that now exercise this problem scenario.
Describe the bug
Hello,
We recently migrated from TypeSpec 0.55.0 to 0.62.0 and are seeing the following failure when trying use our existing (and previously working) json schema emitter implementation:
Reproduction
tspconfig is as follows:
Checklist