cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Add defaultTag and prefix config #9

Closed gilsdav closed 5 years ago

gilsdav commented 5 years ago

Hello,

I need to use defaultTag and prefix config to make me able to generate multiple api instances into one project.

{
  "$schema": "node_modules/ng-openapi-gen/ng-openapi-gen-schema.json",
  "input": "https://gist.githubusercontent.com/danielflower/5c5ae8a46a0a49aee508690c19b33ada/raw/b06ff4d9764b5800424f6a21a40158c35277ee65/petstore.json",
  "output": "./src/api",
  "ignoreUnusedModels": false,
  "prefix": "ApiDude",       <----
  "defaultTag": "ApiDude"    <----
}

Thank's in advance

gilsdav commented 5 years ago

Can be replaced by existing configurations