Open
Description
Hi,
I try to use the tool to generate schema for a generic interface which contains a map.
Here is my strip down interface ts code
interface Base\<dummy\> {
map: { [key: string]: dummy };
}
interface Test extends Base\<string\> {
}
The tool generates the following schema for type Test
{
"$ref": "#/definitions/Test",
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"Test": {
"properties": {
"map": {
"additionalProperties": {
"$ref": "#/definitions/dummy"
},
"type": "object"
}
},
"type": "object"
},
"dummy": {
"type": "object"
}
}
}
I would expect the type of dummy be string instead of object.
Is this a bug ?