Closed wedgex closed 5 years ago
Is there a way to expose a field and document it's type as being one of several options?
For example if I had a subscriber field that could either be a Person or Organization I'd like to be able to express something like
subscriber
Person
Organization
expose :subscriber, documentation: { types: [PersonEntity, OrganizationEntity] }
Is there a way to expose a field and document it's type as being one of several options?
For example if I had a
subscriber
field that could either be aPerson
orOrganization
I'd like to be able to express something like