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
The Api Platform 3 Part 3: Custom Resource course leads to an incomplete setup when using a custom resource with a different input and output format (either distinct DTO classes or when using serialization groups). The 'output' property and the 'normalizationContext' on both the resource and operation are ignored, so POST requests will return the input DTO.
I solved this by mapping to the output DTO and returning this object at the end of the process method in the state processor.
The Api Platform 3 Part 3: Custom Resource course leads to an incomplete setup when using a custom resource with a different input and output format (either distinct DTO classes or when using serialization groups). The 'output' property and the 'normalizationContext' on both the resource and operation are ignored, so POST requests will return the input DTO.
I solved this by mapping to the output DTO and returning this object at the end of the process method in the state processor.
I am posting this here in case anyone runs into the same issue, as this took me multiple days to track down.
The text was updated successfully, but these errors were encountered: