Forum Discussion

lenartgolob's avatar
New Member
2 years ago

😱 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.

No RepliesBe the first to reply