Bruce Johnston
Bruce Johnston
Seems like the extension is the cleanest solution. It doesn't have to be breaking if we ensure that it's optional (i.e. -- fall back to the current behavior if it's...
Since I haven't heard any objections, I'm going to start implementing a fix based on adding a new extension (tentatively named `x-ms-discriminator-value`).
Still working on this. Found this related bug along the way: https://github.com/Azure/autorest/issues/456
I'm going to try to fix this.
It would be great to see this fixed. Let me know if I can help.
@devigned @stankovski Just to clarify, are we only talking about parameters here, or properties too? I would love for my customers to not have to worry about nullability of model...
@xingwu1 Exactly -- I don't actually need the generated code to validate model properties, since the REST API already does this.
If I understand `x-ms-client-flatten` correctly, it can basically inline body parameter properties as method arguments, but I don't see how it can implement the transformation I outlined above, where this:...
I see. That sort of works, but it's a shame that it has to duplicate the model class like that. A while ago you mentioned this possibility: > Following implementation...
In my example, the `Name` property is already there, it's just duplicated between the body and the path in the REST API (and therefore in the Swagger). This is a...