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].
For more options, visit https://groups.google.com/d/optout.