Describe the bug
According to https://github.com/swaggest/rest/issues/113 valid JSON Content-Type is application/json but swaggest accepts by default any value matching application/json* pattern, i.e.
Expected behavior
Only application/json should be allowed by default; allowing incorrect deviations like application/json; charset=utf-8 may be allowed only when explicitly requested (with option similar to existing tolerateFormData).
Describe the bug According to https://github.com/swaggest/rest/issues/113 valid JSON Content-Type is
application/json
but swaggest accepts by default any value matchingapplication/json*
pattern, i.e.Expected behavior Only
application/json
should be allowed by default; allowing incorrect deviations likeapplication/json; charset=utf-8
may be allowed only when explicitly requested (with option similar to existingtolerateFormData
).Additional context https://www.hyrumslaw.com/