Response content type in openapi.json is application\json regardless of DefaultSuccessResponseContentType and DefaultErrorResponseContentType introduced in https://github.com/swaggest/rest/pull/116.
To Reproduce
In any API project with success and error reponses set
and see application\json as 200 and error response content type in generated openapi.json.
Expected behavior
In openapi.json 200 response should have content type set with DefaultSuccessResponseContentType and error responses should have content type set with DefaultErrorResponseContentType.
Additional context
Actual 200 and error API response content types are equal to DefaultSuccessResponseContentType and DefaultErrorResponseContentType accordingly so it's fine.
Issue is only about response content types in openapi.json.
Describe the bug
Response content type in
openapi.json
isapplication\json
regardless ofDefaultSuccessResponseContentType
andDefaultErrorResponseContentType
introduced in https://github.com/swaggest/rest/pull/116.To Reproduce
In any API project with success and error reponses set
and see
application\json
as 200 and error response content type in generatedopenapi.json
.Expected behavior
In
openapi.json
200 response should have content type set withDefaultSuccessResponseContentType
and error responses should have content type set withDefaultErrorResponseContentType
.Additional context
Actual 200 and error API response content types are equal to
DefaultSuccessResponseContentType
andDefaultErrorResponseContentType
accordingly so it's fine.Issue is only about response content types in
openapi.json
.