acacode / acacode/swagger-typescript-api

Default Value not getting assigned on code conversion to typescript.

Open
#706 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

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;

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.