You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RingCentral API uses a polymorphic Event definition where the body property can be one of several different properties depending on the event type.
The Swagger / OpenAPI 2.0 spec doesn't support this so right now we have the individual body structs but need to hand-create a top level Event struct.
The next step here would be to experiment with OpenAPI 3.0 spec to see if Swagger Codegen can auto-create a polymorphic struct using oneOf.
This is to explore:
Hand creating an Event struct
Moving to OpenAPI 3.0 spec for events and auto-generating the Event struct using oneOf
The text was updated successfully, but these errors were encountered:
grokify
changed the title
No top level Event struct
No top level Event struct due to polymorphism
Feb 11, 2018
The RingCentral API uses a polymorphic
Event
definition where thebody
property can be one of several different properties depending on the event type.The Swagger / OpenAPI 2.0 spec doesn't support this so right now we have the individual
body
structs but need to hand-create a top levelEvent
struct.The next step here would be to experiment with OpenAPI 3.0 spec to see if Swagger Codegen can auto-create a polymorphic struct using
oneOf
.This is to explore:
Event
structEvent
struct usingoneOf
The text was updated successfully, but these errors were encountered: