-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Milestone
Description
IS
-
the
@property
definition in the\cebe\openapi\spec\Response
class is* @property MediaType[]|Reference[] $content
-
But this property can only contain a MediaType and no Reference
-
See https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#responseObject and https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#response-object
-
To help static code analysis tools a
assert($responseContent instanceof MediaType);
is required as quickfix
Should
- The property should be only
MediaType
because aReference
is not allowed there
Metadata
Metadata
Assignees
Labels
No labels