Swagger input generator is handling SerializationFormat
on properties differently from the typespec generator
#5158
Labels
Mgmt
This issue is related to a management-plane library.
This difference leads an ugly workaround on sample generator.
Fixing it here might not be worthy, creating this issue to track the issue.
Issue:
In typespec input, models are created by
ModelProvider
class. The properties inside this class will haveSerializationFormat
property properly assigned.But in swagger input, models are created by
SchemaObjectType
class. The properties inside this class also have thisSerializationFormat
property, but its value is alwaysDefault
.Since now in the generator, only HLC and mgmt have some project using swagger as input, and HLC does not have a sample generator, this issue only impacts mgmt plane.
The text was updated successfully, but these errors were encountered: