Yes, there is the “allOf” construct > On Jul 21, 2017, at 5:32 PM, Diego Bernardes <[email protected]> > wrote: > > Does Swagger has anything like union types? I want to declare a definition of > object to use on my endpoints. But a given field on a object can have > multiple definitions. Like this: > > Subscription: > type: object > properties: > notification: > type: ? > notificationType: > type: string > enum: [endpoint, webservice] > > NotificationEndpoint: > type: object > properties: > ... > > NotificationWebsocket: > type: object > properties: > ... > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>.
-- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
