Package dk.mada.jaxrs.openapi
Class DtoTransformer
java.lang.Object
dk.mada.jaxrs.openapi.DtoTransformer
Transforms OpenApi dtos (models) to local model objects.
DefaultGenerator:processModels DefaultCodegen:fromModel DefaultCodegen:fromProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
transform
(io.swagger.v3.oas.models.OpenAPI specification) Transforms OpenApi specification to types model.
-
Constructor Details
-
DtoTransformer
Constructs new DTO transformer.- Parameters:
typeConverter
- the type converter instance
-
-
Method Details
-
transform
public void transform(io.swagger.v3.oas.models.OpenAPI specification) Transforms OpenApi specification to types model. The types are added to the Types instance as the specification is processed.- Parameters:
specification
- the OpenApi specification
-