When a property has x-ms-client-flatten: true extension, and its schema has a discriminator, our generator is only generating the model with properties flattened from the base model of the discriminated set. All derived types from the set have been omitted and the user of the library cannot use any property from the derived types.
When a property has
x-ms-client-flatten: true
extension, and its schema has a discriminator, our generator is only generating the model with properties flattened from the base model of the discriminated set. All derived types from the set have been omitted and the user of the library cannot use any property from the derived types.Example and fix: https://github.com/Azure/azure-sdk-for-net/pull/40683 Theoretically this could happen to any swagger, and to typespec if typespec supports the same functionality.