Package io.smallrye.openapi.api
Class SmallRyeOpenAPI
java.lang.Object
io.smallrye.openapi.api.SmallRyeOpenAPI
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSmallRyeOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI model, Object jsonModel, BiFunction<?, Format, String> toString, boolean unmodifiable) -
Method Summary
Modifier and TypeMethodDescriptionstatic SmallRyeOpenAPI.Builderbuilder()Create a newSmallRyeOpenAPI.Builderinstance;org.eclipse.microprofile.openapi.models.OpenAPImodel()The finalOpenAPImodel generated fromSmallRyeOpenAPI.Builder.build().toJSON()Serializes themodelas a JSON StringtoYAML()Serializes themodelas a YAML String
-
Constructor Details
-
SmallRyeOpenAPI
protected SmallRyeOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI model, Object jsonModel, BiFunction<?, Format, String> toString, boolean unmodifiable)
-
-
Method Details
-
model
public org.eclipse.microprofile.openapi.models.OpenAPI model()The finalOpenAPImodel generated fromSmallRyeOpenAPI.Builder.build(). -
toJSON
Serializes themodelas a JSON String -
toYAML
Serializes themodelas a YAML String -
builder
Create a newSmallRyeOpenAPI.Builderinstance;- Returns:
- a new
SmallRyeOpenAPI.Builder
-