Closed hugop95 closed 3 months ago
Annotations such as @Operation(summary = 'What I am doing') could fill the summary OpenAPI attribute, and
@Operation(summary = 'What I am doing')
summary
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Success"), @ApiResponse(responseCode = "400", content = { @Content(schema = @Schema(implementation = AnotherSchema.class))}) }) @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE) ResponseEntity<MySchema> test()
could generate
responses: '200': description: Success content: application/json: schema: "$ref": "#/components/schemas/MySchema" '400': description: Bad Request content: application/json: schema: "$ref": "#/components/schemas/AnotherSchema"
Closing as duplicate of #64
Annotations such as
@Operation(summary = 'What I am doing')
could fill thesummary
OpenAPI attribute, andcould generate