acacode / acacode/swagger-typescript-api
Default Value not getting assigned on code conversion to typescript.
- 主要语言
- TypeScript
- 星标
- 4.1k
- 派生
- 436
- PR 合并指标
- 30 天内没有已合并 PR
描述
Typescript generated code does not seem to assign the default values to variables. Is this a known issue ? When do we plan to resolve this :
This is a snippet from my swagger json :
{
"type": "object",
"properties": {
"targetListId": {
"minimum": 1,
"type": "integer",
"description": "Target id",
"format": "int64"
},
"actionType": {
"type": "string",
"description": "Type representing the node",
"default": "ADD_PHONE"
}
}
}
Generated TS :
/**
* Action Type representing the node
* @default "ADD_PHONE"
*/
actionType?: string;
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。