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