Class OpenApiDocumentBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.smallrye.openapi.deployment.spi.OpenApiDocumentBuildItem
public final class OpenApiDocumentBuildItem
extends io.quarkus.builder.item.MultiBuildItem
The final OpenAPI Documents as generated by the Extension.
-
Constructor Summary
ConstructorsConstructorDescriptionOpenApiDocumentBuildItem(io.smallrye.openapi.api.OpenApiDocument openApiDocument, io.smallrye.openapi.api.SmallRyeOpenAPI smallRyeOpenAPI, String documentName) -
Method Summary
Modifier and TypeMethodDescriptionReturns the document name as configured usingquarkus.smallrye-openapi.<document-name>, orOpenAPISPIConstants.DEFAULT_DOCUMENT_NAMEfor the default unnamed document.io.smallrye.openapi.api.OpenApiDocumentio.smallrye.openapi.api.SmallRyeOpenAPIbooleanHelper method to figure out if this build item is for the default document
-
Constructor Details
-
OpenApiDocumentBuildItem
public OpenApiDocumentBuildItem(io.smallrye.openapi.api.OpenApiDocument openApiDocument, io.smallrye.openapi.api.SmallRyeOpenAPI smallRyeOpenAPI, String documentName)
-
-
Method Details
-
getOpenApiDocument
public io.smallrye.openapi.api.OpenApiDocument getOpenApiDocument() -
getSmallRyeOpenAPI
public io.smallrye.openapi.api.SmallRyeOpenAPI getSmallRyeOpenAPI() -
getDocumentName
Returns the document name as configured usingquarkus.smallrye-openapi.<document-name>, orOpenAPISPIConstants.DEFAULT_DOCUMENT_NAMEfor the default unnamed document. -
isDefaultDocument
public boolean isDefaultDocument()Helper method to figure out if this build item is for the default document
-