-
-
Notifications
You must be signed in to change notification settings - Fork 568
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Issue
Configuring the @ExampleObject with examples specifying the externalValue="http://localhost:8090/context/examples/test.json" not showing in swagger-ui.
RestController
@GetMapping("/testopenapi")
@Operation(summary = "Get thing", responses = {
@ApiResponse(description = "Successful Operation", responseCode = "200", content = @Content(examples = @ExampleObject(name = "readJson", externalValue = "http://localhost:8090/context/examples/test.json", summary = "Request")))
})
public @ResponseBody ResponseEntity<String> testopenapi()
{
return new ResponseEntity<String>("Hello welcome! This is testopenapi controller.",
HttpStatus.OK);
}
I tried multiple options specified in forum but noting helped much. But if i change it to value and provide the json as string it works fine.
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
