-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Milestone
Description
IS
-
the
@propertydefinition in the\cebe\openapi\spec\Responseclass 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
MediaTypebecause aReferenceis not allowed there
Metadata
Metadata
Assignees
Labels
No labels