Skip to content
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

AutoRest.Azure does not support addition of flattened properties in the derived class. #1409

Closed
hovsepm opened this issue Sep 7, 2016 · 1 comment

Comments

@hovsepm
Copy link
Contributor

hovsepm commented Sep 7, 2016

Let's say we have following types defined in swagger:
Model definition A
Model definition B has [All Of] Model A, plus Additional property Foo
Model definition C has flattened property set of type A
Model definition D has flattened property set of type B and [All of] Model C

Expected:
After generation Type D should have property Foo (Defined in B) along with all the properties from Model definition A

Actual:
Type D has only properties defined in Model Definition A, because during type resolution AutoRest pics flattened properties of base class C.

@fearthecowboy fearthecowboy added this to the 1.0 milestone Sep 8, 2016
@fearthecowboy fearthecowboy removed this from the 1.0 milestone Nov 8, 2016
@fearthecowboy
Copy link
Member

No. Maybe in vNext high-level generators. But not in classic generators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants