Class DtoTransformer

java.lang.Object
dk.mada.jaxrs.openapi.DtoTransformer

public class DtoTransformer extends Object
Transforms OpenApi dtos (models) to local model objects. DefaultGenerator:processModels DefaultCodegen:fromModel DefaultCodegen:fromProperty
  • Constructor Details

    • DtoTransformer

      public DtoTransformer(TypeConverter typeConverter)
      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