Interface SmallRyeOpenApiConfig
@ConfigRoot
@ConfigMapping(prefix="quarkus.smallrye-openapi")
public interface SmallRyeOpenApiConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.default booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault StringDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinstead@WithUnnamedKey("<default>") Map<String, OpenApiDocumentConfig> OpenAPI documentsDeprecated, for removal: This API element is subject to removal in a future version.UseOpenApiDocumentConfig.getValidSecuritySchemeExtensions()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault StringDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault StringDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadbooleanIf management interface is turned on the openapi schema document will be published under the management interface.default booleanDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault StringDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault StringDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault Stringpath()Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault StringDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault StringDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteaddefault StringDeprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinstead
-
Field Details
-
DEFAULT_DOCUMENT_NAME
- See Also:
-
DEFAULT_PATH
- See Also:
-
DEFAULT_STORE_SCHEMA_FILE_NAME
- See Also:
-
-
Method Details
-
path
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadThe path at which to register the OpenAPI Servlet. -
storeSchemaDirectory
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadIf 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
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadThe name of the file in case it is being stored. -
alwaysRunFilter
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDo not run the filter only at startup, but every time the document is requested (dynamic). -
ignoreStaticDocument
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadDo 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
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadA 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
@Deprecated(since="3.31", forRemoval=true) default Optional<SmallRyeOpenApiConfig.SecurityScheme> securityScheme()Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a certain SecurityScheme with config -
securitySchemeName
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a Security Scheme name to the generated OpenAPI document -
securitySchemeDescription
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a description to the Security Scheme -
securitySchemeExtensions
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd one or more extensions to the security scheme -
autoAddSecurityRequirement
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadThis will automatically add the security requirement to all methods/classes that has a `RolesAllowed` annotation. -
autoAddTags
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadThis will automatically add tags to operations based on the Java class name. -
autoAddBadRequestResponse
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadThis will automatically add Bad Request (400 HTTP response) API response to operations with an input. -
autoAddOperationSummary
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadThis will automatically add a summary to operations based on the Java method name. -
autoAddServer
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSetting 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
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadThis will automatically add security based on the security extension included (if any). -
autoAddOpenApiEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadThis 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
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadRequired when using `apiKey` security. The location of the API key. Valid values are "query", "header" or "cookie". -
apiKeyParameterName
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadRequired when using `apiKey` security. The name of the header, query or cookie parameter to be used. -
basicSecuritySchemeValue
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a scheme value to the Basic HTTP Security Scheme -
jwtSecuritySchemeValue
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a scheme value to the JWT Security Scheme -
jwtBearerFormat
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a bearer format the JWT Security Scheme -
oauth2SecuritySchemeValue
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a scheme value to the OAuth2 opaque token Security Scheme -
oauth2BearerFormat
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a scheme value to OAuth2 opaque token Security Scheme -
oidcOpenIdConnectUrl
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a openIdConnectUrl value to the OIDC Security Scheme -
oauth2ImplicitRefreshUrl
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd a implicit flow refreshUrl value to the OAuth2 Security Scheme -
oauth2ImplicitAuthorizationUrl
@Deprecated(since="3.31", forRemoval=true) default Optional<String> oauth2ImplicitAuthorizationUrl()Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd an implicit flow authorizationUrl value to the OAuth2 Security Scheme -
oauth2ImplicitTokenUrl
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadAdd an implicit flow tokenUrl value to the OAuth2 Security Scheme -
openApiVersion
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadOverride the openapi version in the Schema document -
infoTitle
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the title in Info tag in the Schema document -
infoVersion
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the version in Info tag in the Schema document -
infoDescription
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the description in Info tag in the Schema document -
infoTermsOfService
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the terms of the service in Info tag in the Schema document -
infoContactEmail
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the contact email in Info tag in the Schema document -
infoContactName
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the contact name in Info tag in the Schema document -
infoContactUrl
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the contact url in Info tag in the Schema document -
infoLicenseName
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the license name in Info tag in the Schema document -
infoLicenseUrl
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the license url in Info tag in the Schema document -
operationIdStrategy
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet the strategy to automatically create an operation Id. The strategy may be one of the predefined values or the name of a fully-qualified class that implements theio.smallrye.openapi.api.OperationIdGeneratorinterface.Predefined strategies:
method: generate an operationId with the resource method's nameclass-method: generate an operationId with the resource class's simple name and the resource method's namepackage-class-method: generate an operationId with the resource class's fully-qualified name and the resource method's name
-
mergeSchemaExamples
Deprecated, for removal: This API element is subject to removal in a future version.Usedocuments()with keyDEFAULT_DOCUMENT_NAMEinsteadSet 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
@Deprecated(since="3.31", forRemoval=true) default Map<String,String> getValidSecuritySchemeExtensions()Deprecated, for removal: This API element is subject to removal in a future version.UseOpenApiDocumentConfig.getValidSecuritySchemeExtensions()with keyDEFAULT_DOCUMENT_NAMEinsteadGet valid security scheme extensions (those starting with "x-") -
documents
@ConfigDocMapKey("document-name") @WithParentName @WithUnnamedKey("<default>") @WithDefaults @WithUnnamedKey("<default>") Map<String,OpenApiDocumentConfig> documents()OpenAPI documents
-
documents()with keyDEFAULT_DOCUMENT_NAMEinstead