UNPKG

@ordercloud/oc-codegen

Version:

OpenAPI codegen tool built for the OrderCloud API

33 lines (32 loc) 885 B
export interface CodegenOptions { /** * (required) path to handlebars templates folder */ templates: string; /** * path to openapi specification (defaults to https://api.ordercloud.io/v1/openapi/v3) */ inputSpec?: string; /** * path to folder where files will be output (defaults to current directory) */ output?: string; /** * path to hooks file */ hooks?: string; /** * path to handlebars extensions file */ handlebarsExtensions?: string; /** * if set to true will not generate the sdk and will instead * output the template data that gets passed to the handlebars templates */ debug?: boolean; /** * if set to true will empty the contents of the output * directory before writing files to it */ clean?: boolean; }