After updating ob Jsonapi module I mentioned, that file uploading is broken. Server returns in response validation error and 422 status. When I debugged it, I found, that jsonapi_file denormalizer was never called.
Increasing of service priority value from 22 to 23 solved my problem.

And here is patch, that fix this problem.

Comments

gun_dose created an issue. See original summary.

gun_dose’s picture

Issue summary: View changes
StatusFileSize
new385 bytes
jerenus’s picture

Yes, I have the same problem and I can use the same way to fix it.

grimreaper’s picture

Status: Active » Reviewed & tested by the community

Hello,

I can confirm the patch solved the bug.

Before applying the patch and testing the documentation example, I obtained the error:

"url.0.value: This value should be of the correct primitive type."

  • Spleshka committed 71672b5 on 8.x-1.x authored by gun_dose
    Issue #2892341 by gun_dose, Jerenus, Grimreaper, Spleshka: File entity...
spleshka’s picture

Status: Reviewed & tested by the community » Fixed

Thanks guys for patch & review, committed to 8.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.