ng-alain
Version:
Schematics specific to ng-alain
60 lines (59 loc) • 1.66 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainSTAComponent",
"title": "NG-ALAIN Swagger To API Options Schema",
"type": "object",
"additionalProperties": true,
"properties": {
"config": {
"type": "string",
"default": "sta.json",
"description": "指定配置文件路径 (Specify the configuration file path)"
},
"name": {
"type": "string",
"description": "Name for swagger project name, Default: sta",
"default": "sta"
},
"url": {
"type": "string",
"description": "URL to swagger schema, Choose one of filePath and url."
},
"filePath": {
"type": "string",
"description": "Path to swagger schema, Choose one of filePath and url."
},
"output": {
"type": "string",
"description": "Path to folder where will been located the created api module, Default: /src/app/${name}"
},
"responseDataField": {
"type": "string",
"description": "The real data field of Response"
},
"httpClientType": {
"type": "string",
"default": "delon",
"enum": [ "delon", "angular" ],
"description": "httpClient request type, Default: `delon`"
},
"modelTypePrefix": {
"type": "string",
"default": "",
"description": "Model name prefix"
},
"generateApiOptions": {
"anyOf": [
{ "type": "string", "default": "{}" },
{ "type": "object" }
]
},
"tagsMapping": {
"type": "object",
"description": "Swagger tag mapping dictionary",
"additionalProperties": {
"type": "string"
}
}
}
}