-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flatten "properties" to avoid unnecessary nesting #1447
Comments
I thought this quite often while going through the AnyType occurrences. Do you mean specifically for fields called "Properties"? Also, I'd guess we would want this to be recursive just in case there are multiple levels of Properties? |
Yeah, specifically the Not sure about nested Nested |
I think we can automatically detect what should be processed as some of the types are marked as |
Ah ok - definitely for the properties on a spec particularly. |
Closes #1447 **What this PR does / why we need it**: Applies the `x-ms-client-flatten` attribute when it is present in the Swagger. **How does this PR make you feel**: ![gif](https://media.giphy.com/media/2a5IGQ1n1Ap1e/giphy.gif)
For example in the generated
Redis
types, there is a fieldProperties
which probably ought to have its fields promoted up a level.This is a pattern that is quite common (for example Storage account also has a
Properties
)The text was updated successfully, but these errors were encountered: