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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I defined method for receiving multipart form data containing entity data as JSON and file for this entity in my controller:
Then when I send request to this endpoint using curl (or other http client, this doesn't matter):
I receive this error from Micronaut:
"Required Part [newEntity] not specified"
.I found this post on stackoverflow with same issue: https://stackoverflow.com/questions/75209784/micronaut-does-not-map-an-object-in-a-multipart. There is suggestion to use
String
instead of object and then useObjectMapper
. But I still want to ask you for clarification.Is this bug? Or Micronaut just doesn't support mapping to object for multipart form request.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions