acacode / acacode/swagger-typescript-api
Default Value not getting assigned on code conversion to typescript.
- Ngôn ngữ chính
- TypeScript
- Star
- 4.1k
- Fork
- 436
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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;
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.