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
{{ message }}
Repository navigation
[BUG] [JAVA] Wildcard Content-Types used in request without validation #24118
I use the OpenApi generator to write classes that use the spring boot resttemplate and restclient.
I want to send requests with a variable amount of content-types. These include: all of the application, image and text content-types. To achieve this I included wildcards in the definition of the openapi-spec yaml-file.
When I use wildcards in the definition of the requests bodies, these wildcards are put into the content-type of the request without any validation.
This causes an IllegalArgumentException(Content-Type cannot contain wildcard type/subtype '*').
There should be a verification if a content-type includes a wildcard and if that is the case a default value or something else should be used instead.
Activity
[Java] Skip wildcard media types when selecting request Content-Type (#…
Merge upstream/master-7.24.0