Documentation issue: "OpenAPICustomiser"
ZeroOne3010 opened this issue · 0 comments
ZeroOne3010 commented
In the full documentation section 11.27. How can I customise the OpenAPI object?, there's a code example that does not compile.
@Bean
public OpenAPICustomiser consumerTypeHeaderOpenAPICustomiser() {
return openApi -> openApi.getPaths().values().stream().flatMap(pathItem -> pathItem.readOperations().stream())
.forEach(operation -> operation.addParametersItem(new HeaderParameter().$ref("#/components/parameters/myConsumerTypeHeader")));
}
The issue is that there is no class named OpenAPICustomiser. Instead, it is called OpenApiCustomiser.