mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 17:12:49 +00:00
[spring] reactive: fix Content-Type (#16228)
* don't set content-type to client's value * revert manual sample change * better fix * generate samples * cover 3rd case * add new test endpoint
This commit is contained in:
@@ -339,4 +339,20 @@ public interface FakeApi {
|
||||
@RequestParam(value = "context", required = true) List<String> context
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* GET /fake/response-with-example
|
||||
* This endpoint defines an example value for its response schema.
|
||||
*
|
||||
* @return Success (status code 200)
|
||||
*/
|
||||
@HttpExchange(
|
||||
method = "GET",
|
||||
value = "/fake/response-with-example",
|
||||
accept = "application/json"
|
||||
)
|
||||
ResponseEntity<Integer> testWithResultExample(
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user