Skip to content

3.2.1

Choose a tag to compare

@github-actions github-actions released this 21 Feb 12:28
  • improved openapi generator
    • you can specify custom type imports

@Service
public class CustomOpenApiConverter extends DefaultOpenApiConverter {
    
    @Override
    public String getImportPackage(String type) {
        if (type != null && type.contains("io.productspace.backoffice.dto") ) {
            return "@rcktbs/ps-backoffice-api";
        }
        return super.getImportPackage(type);
    }
}

thins clients-generation it looks then like

import { CreateAnswerGroupCmd} from "../../model";
import { AnswerGroup } from "@rcktbs/ps-backoffice-api";