π± Could not render this component, see the console.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
β05-07-2022
06:05 AM
β05-07-2022
06:05 AM
π± Could not render this component, see the console.
I generated OpenAPI 3.0 documentation for my Java kumuluzee project. I configured the parameter in header, but I get the error "π± Could not render this component, see the console." on the UI.
This is how I configured the parameter.
@Operation(description = "Returns list of all possible public transportations from point A to point B with their duration and distance.", summary = "Ljubljana pulic transport list", tags = "Transport", responses = {
@ApiResponse(responseCode = "200",
description = "Ljubljana pulic transport list",
content = @Content(schema = @Schema(implementation = LjubljanaTransportResponse.class)),
headers = {@Header(name = "X-Context", schema = @Schema(implementation = Context.class))}
)})
@Parameter(in = ParameterIn.HEADER, description = "Custom Header To be Pass", name = "X-Context", required = true, content = @Content(schema = @Schema(implementation = Context.class)))
And this is what I get on /openapi.json
And these are the error messages in browser.
Any help is greatly appriciated. Thanks in advance.
Labels:
- Labels:
-
Swagger UI
0 REPLIES 0
