swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

Custom type named FileXyz triggers content type workaround

Open aphofstede opened this issue 3 weeks ago • 0 comments

There's a workaround that auto-sets content type form-data if it sees a payload entry of type File, but it matches for any (custom) types starting with "File" in JSON payloads, thus making them content-type form-data suddenly.

aphofstede avatar Dec 02 '25 17:12 aphofstede