You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When generating OpenAPI documentation for APIs that include embedded resources, the generated file includes a @context field also for embeded resources. However, in practice, it seems that this field is redundant for embedded resources. Response does not contain this field, so there is a mismatch between OpenAPI documentation and returned response.
How to reproduce
Create a resource with embedded subresource and compare the returned response with OpenAPI documentation response declaration.
Possible Solution
Remove @context field from embedded resources from OpenApi documentation.
API Platform version(s) affected: 3.2.20
Description
When generating OpenAPI documentation for APIs that include embedded resources, the generated file includes a
@context
field also for embeded resources. However, in practice, it seems that this field is redundant for embedded resources. Response does not contain this field, so there is a mismatch between OpenAPI documentation and returned response.How to reproduce
Create a resource with embedded subresource and compare the returned response with OpenAPI documentation response declaration.
Possible Solution
Remove
@context
field from embedded resources from OpenApi documentation.Example
OpenAPI documentation for response:
Returned response:
The text was updated successfully, but these errors were encountered: