Package io.smallrye.openapi.api
Class OpenApiDocument
java.lang.Object
io.smallrye.openapi.api.OpenApiDocument
Deprecated.
Holds the final OpenAPI document produced during the startup of the app.
Note that the model must be initialized first!
- Author:
- Martin Kouba
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveName(String archiveName) Deprecated.voidconfig(OpenApiConfig config) Deprecated.voiddefaultRequiredProperties(boolean defaultRequiredProperties) Deprecated.voidfilter(org.eclipse.microprofile.openapi.OASFilter filter) Deprecated.org.eclipse.microprofile.openapi.models.OpenAPIget()Deprecated.voidDeprecated.booleanisSet()Deprecated.voidmodelFromAnnotations(org.eclipse.microprofile.openapi.models.OpenAPI model) Deprecated.voidmodelFromReader(org.eclipse.microprofile.openapi.models.OpenAPI model) Deprecated.voidmodelFromStaticFile(org.eclipse.microprofile.openapi.models.OpenAPI model) Deprecated.static OpenApiDocumentDeprecated.voidreset()Deprecated.Reset the holder.voidset(org.eclipse.microprofile.openapi.models.OpenAPI model) Deprecated.Set the final OpenAPI document.voidDeprecated.
-
Field Details
-
INSTANCE
Deprecated.
-
-
Method Details
-
newInstance
Deprecated. -
get
public org.eclipse.microprofile.openapi.models.OpenAPI get()Deprecated.- Returns:
- the final OpenAPI document produced during the startup of the app
- Throws:
IllegalStateException- If the final model is not initialized yet
-
set
public void set(org.eclipse.microprofile.openapi.models.OpenAPI model) Deprecated.Set the final OpenAPI document. This method should only be used for testing.- Parameters:
model- OpenAPI model instance
-
reset
public void reset()Deprecated.Reset the holder. -
isSet
public boolean isSet()Deprecated.- Returns:
trueif model initialized
-
config
Deprecated. -
modelFromAnnotations
public void modelFromAnnotations(org.eclipse.microprofile.openapi.models.OpenAPI model) Deprecated. -
modelFromReader
public void modelFromReader(org.eclipse.microprofile.openapi.models.OpenAPI model) Deprecated. -
modelFromStaticFile
public void modelFromStaticFile(org.eclipse.microprofile.openapi.models.OpenAPI model) Deprecated. -
filter
public void filter(org.eclipse.microprofile.openapi.OASFilter filter) Deprecated. -
defaultRequiredProperties
public void defaultRequiredProperties(boolean defaultRequiredProperties) Deprecated. -
archiveName
Deprecated. -
version
Deprecated. -
initialize
public void initialize()Deprecated.
-
SmallRyeOpenAPIbuilder API instead. This class may be moved, have reduced visibility, or be removed in a future release.