cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
469 stars 89 forks source link

Wrong property definition #126

Closed marcelthole closed 2 years ago

marcelthole commented 2 years ago

IS

Should

cebe commented 2 years ago
  • To help static code analysis tools a assert($responseContent instanceof MediaType); is required as quickfix

keep in mind however, that this is just annotation, adding a reference here would probably still be possible in an openapi document even though it would not be strictly valid due to the spec. So your code should still to the type check.