Interface SmallRyeOpenApiConfig
@ConfigRoot
@ConfigMapping(prefix="quarkus.smallrye-openapi")
public interface SmallRyeOpenApiConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionA list of local directories that should be scanned for yaml and/or json files to be included in the static model.booleanDo not run the filter only at startup, but every time the document is requested (dynamic).Required when using `apiKey` security.Required when using `apiKey` security.booleanThis will automatically add Bad Request (400 HTTP response) API response to operations with an input.booleanThis will automatically add the OpenAPI specification document endpoint to the schema.booleanThis will automatically add a summary to operations based on the Java method name.booleanThis will automatically add security based on the security extension included (if any).booleanThis will automatically add the security requirement to all methods/classes that has a `RolesAllowed` annotation.Setting it to `true` will automatically add a default server to the schema if none is provided, using the current running server host and port.booleanThis will automatically add tags to operations based on the Java class name.Add a scheme value to the Basic HTTP Security SchemebooleanDo not include the provided static openapi document (eg.Set the contact email in Info tag in the Schema documentSet the contact name in Info tag in the Schema documentSet the contact url in Info tag in the Schema documentSet the description in Info tag in the Schema documentSet the license name in Info tag in the Schema documentSet the license url in Info tag in the Schema documentSet the terms of the service in Info tag in the Schema documentSet the title in Info tag in the Schema documentSet the version in Info tag in the Schema documentAdd a bearer format the JWT Security SchemeAdd a scheme value to the JWT Security SchemebooleanIf management interface is turned on the openapi schema document will be published under the management interface.booleanSet this boolean value to enable or disable the merging of the deprecated `@Schema` `example` property into the `examples` array introduced in OAS 3.1.0.Add a scheme value to OAuth2 opaque token Security SchemeAdd an implicit flow authorizationUrl value to the OAuth2 Security SchemeAdd a implicit flow refreshUrl value to the OAuth2 Security SchemeAdd an implicit flow tokenUrl value to the OAuth2 Security SchemeAdd a scheme value to the OAuth2 opaque token Security SchemeAdd a openIdConnectUrl value to the OIDC Security SchemeOverride the openapi version in the Schema documentSet the strategy to automatically create an operation Idpath()The path at which to register the OpenAPI Servlet.Add a certain SecurityScheme with configAdd a description to the Security SchemeAdd one or more extensions to the security schemeAdd a Security Scheme name to the generated OpenAPI documentIf set, the generated OpenAPI schema documents will be stored here on build.The name of the file in case it is being stored.
-
Method Details
-
path
The path at which to register the OpenAPI Servlet. -
storeSchemaDirectory
If set, the generated OpenAPI schema documents will be stored here on build. Both openapi.json and openapi.yaml will be stored here if this is set. -
storeSchemaFileName
The name of the file in case it is being stored. -
alwaysRunFilter
@WithDefault("false") boolean alwaysRunFilter()Do not run the filter only at startup, but every time the document is requested (dynamic). -
ignoreStaticDocument
@WithDefault("false") boolean ignoreStaticDocument()Do not include the provided static openapi document (eg. META-INF/openapi.yaml) -
managementEnabled
@WithName("management.enabled") @WithDefault("true") boolean managementEnabled()If management interface is turned on the openapi schema document will be published under the management interface. This allows you to exclude OpenAPI from management by setting the value to false -
additionalDocsDirectory
A list of local directories that should be scanned for yaml and/or json files to be included in the static model. Example: `META-INF/openapi/` -
securityScheme
Optional<SmallRyeOpenApiConfig.SecurityScheme> securityScheme()Add a certain SecurityScheme with config -
securitySchemeName
Add a Security Scheme name to the generated OpenAPI document -
securitySchemeDescription
Add a description to the Security Scheme -
securitySchemeExtensions
Add one or more extensions to the security scheme -
autoAddSecurityRequirement
@WithDefault("true") boolean autoAddSecurityRequirement()This will automatically add the security requirement to all methods/classes that has a `RolesAllowed` annotation. -
autoAddTags
@WithDefault("true") boolean autoAddTags()This will automatically add tags to operations based on the Java class name. -
autoAddBadRequestResponse
@WithDefault("true") boolean autoAddBadRequestResponse()This will automatically add Bad Request (400 HTTP response) API response to operations with an input. -
autoAddOperationSummary
@WithDefault("true") boolean autoAddOperationSummary()This will automatically add a summary to operations based on the Java method name. -
autoAddServer
Setting it to `true` will automatically add a default server to the schema if none is provided, using the current running server host and port. -
autoAddSecurity
@WithDefault("true") boolean autoAddSecurity()This will automatically add security based on the security extension included (if any). -
autoAddOpenApiEndpoint
@WithDefault("false") boolean autoAddOpenApiEndpoint()This will automatically add the OpenAPI specification document endpoint to the schema. It also adds "openapi" to the list of tags and specify an "operationId" -
apiKeyParameterIn
Required when using `apiKey` security. The location of the API key. Valid values are "query", "header" or "cookie". -
apiKeyParameterName
Required when using `apiKey` security. The name of the header, query or cookie parameter to be used. -
basicSecuritySchemeValue
Add a scheme value to the Basic HTTP Security Scheme -
jwtSecuritySchemeValue
Add a scheme value to the JWT Security Scheme -
jwtBearerFormat
Add a bearer format the JWT Security Scheme -
oauth2SecuritySchemeValue
Add a scheme value to the OAuth2 opaque token Security Scheme -
oauth2BearerFormat
Add a scheme value to OAuth2 opaque token Security Scheme -
oidcOpenIdConnectUrl
Add a openIdConnectUrl value to the OIDC Security Scheme -
oauth2ImplicitRefreshUrl
Add a implicit flow refreshUrl value to the OAuth2 Security Scheme -
oauth2ImplicitAuthorizationUrl
Add an implicit flow authorizationUrl value to the OAuth2 Security Scheme -
oauth2ImplicitTokenUrl
Add an implicit flow tokenUrl value to the OAuth2 Security Scheme -
openApiVersion
Override the openapi version in the Schema document -
infoTitle
Set the title in Info tag in the Schema document -
infoVersion
Set the version in Info tag in the Schema document -
infoDescription
Set the description in Info tag in the Schema document -
infoTermsOfService
Set the terms of the service in Info tag in the Schema document -
infoContactEmail
Set the contact email in Info tag in the Schema document -
infoContactName
Set the contact name in Info tag in the Schema document -
infoContactUrl
Set the contact url in Info tag in the Schema document -
infoLicenseName
Set the license name in Info tag in the Schema document -
infoLicenseUrl
Set the license url in Info tag in the Schema document -
operationIdStrategy
Optional<SmallRyeOpenApiConfig.OperationIdStrategy> operationIdStrategy()Set the strategy to automatically create an operation Id -
mergeSchemaExamples
@WithDefault("true") boolean mergeSchemaExamples()Set this boolean value to enable or disable the merging of the deprecated `@Schema` `example` property into the `examples` array introduced in OAS 3.1.0. If set to `false`, the deprecated `example` will be kept as a separate annotation on the schema in the OpenAPI model. -
getValidSecuritySchemeExtensions
-