You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"type": "object",
"description": "thing",
"properties": {
"oops": {
"type": "object",
"description": "oops I did it again */"
}
},
"minProperties": 1,
"additionalProperties": false
}
Because the description is directly converted to a javascript comment inside a /** */ the */ in the JSON description causes an early termination of the comment and breaks the conversion, causing an error like:
±./node_modules/.bin/json2ts/tmp/test.jsonPropertyorsignatureexpected.(13:2)11|/** 12 | * oops I did it again */>13|*/|^14|oops?: {15|[k: string]: any16|}%
Because the description is directly converted to a javascript comment inside a
/** */
the*/
in the JSON description causes an early termination of the comment and breaks the conversion, causing an error like:version
The text was updated successfully, but these errors were encountered: