Example: const{fetchSwaggerJsonFile,convertToTypes}=require('openapi-codegen-typescript');asyncfunctiondoSomething(){constjson=awaitfetchSwaggerJsonFile('https://custom/swagger.json');convertToMocks({json,fileName:'dtoAPI',folderPath:'src/mocks/generated',typesPath:'../../types/generated/dtoAPI'...
Example: // openapi-codegen.config.tsimport{defineConfig}from"@openapi-codegen/cli";import{generateReactQueryComponents,generateSchemaTypes,}from"@openapi-codegen/typescript";exportdefaultdefineConfig({petstore:{from:{/* file, url or github */},outputDir:"./petStore",to:async(context)=>{constfile...