Package io.smallrye.openapi.api.util
Class ConfigUtil
java.lang.Object
io.smallrye.openapi.api.util.ConfigUtil
Used to configure server information and some more from config properties.
- Author:
- eric.wittmann@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptionstatic final voidapplyConfig(OpenApiConfig config, org.eclipse.microprofile.openapi.models.OpenAPI oai) protected static final voidconfigureInfo(OpenApiConfig config, org.eclipse.microprofile.openapi.models.OpenAPI oai) protected static voidconfigureServers(OpenApiConfig config, String pathName, org.eclipse.microprofile.openapi.models.PathItem pathItem) Configures the servers for a PathItem.protected static final voidconfigureServers(OpenApiConfig config, org.eclipse.microprofile.openapi.models.OpenAPI oai) protected static voidconfigureServers(OpenApiConfig config, org.eclipse.microprofile.openapi.models.Operation operation) Configures the servers for an Operation.protected static final voidconfigureVersion(OpenApiConfig config, org.eclipse.microprofile.openapi.models.OpenAPI oai)
-
Method Details
-
applyConfig
public static final void applyConfig(OpenApiConfig config, org.eclipse.microprofile.openapi.models.OpenAPI oai) -
configureVersion
protected static final void configureVersion(OpenApiConfig config, org.eclipse.microprofile.openapi.models.OpenAPI oai) -
configureInfo
protected static final void configureInfo(OpenApiConfig config, org.eclipse.microprofile.openapi.models.OpenAPI oai) -
configureServers
protected static final void configureServers(OpenApiConfig config, org.eclipse.microprofile.openapi.models.OpenAPI oai) -
configureServers
protected static void configureServers(OpenApiConfig config, String pathName, org.eclipse.microprofile.openapi.models.PathItem pathItem) Configures the servers for a PathItem.- Parameters:
config- OpenApiConfigpathName- String representing the pathNamepathItem- String representing the pathItem
-
configureServers
protected static void configureServers(OpenApiConfig config, org.eclipse.microprofile.openapi.models.Operation operation) Configures the servers for an Operation.- Parameters:
config- OpenApiConfigoperation- Operation
-