-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I have a generic schema that applies to every response (GenericResponseSchema
). I also have a couple of specific response types (FirstSpecificResponseSchema
and SecondSpecificResponseSchema
).
I want to do the following:
return Response::ok()->description('Successful response')->content(
MediaType::create()->mediaType('application/geo+json')->schema(
AllOf::create()->schemas(
GenericResponseSchema::ref(),
OneOf::create()->schemas(
FirstSpecificResponseSchema::ref(),
SecondSpecificResponseSchema::ref(),
)
)
)
);
But this does not work, because AllOf::schemas()
only takes Schema
, not OneOf
.
Starfox64
Metadata
Metadata
Assignees
Labels
No labels