Closed kroegerama closed 5 years ago
Hi @kroegerama.
allOf is supported. In your case just remove the type: object
from PushPaginated
and it should work. Let me know how you go
Thank you so much! Works fine now :)
but does this also work with structs? Inheritance is not possible there...
And what happens for something like this?
SomethingAndSomethingelse:
allOf:
- $ref: ‘#/components/schemas/Something’
- $ref: ‘#/components/schemas/SomethingElse’
multiple inheritance is even less possible...
Structs will get the properties of both
currently I get
public struct SomethingAndSomethingelse: Something {
with the error Inheritance from non-protocol type 'Something'
Have you set the template property modelInheritance to false and the modelType to struct?
yes; with modelInheritance
false it works, but only the first reference is used, the SomethingElse
is ignored...
Is there any support for
allOf
planned? The generated code forPushPaginated
does not correctly inherit from the referenced types.