Open MaikuMori opened 5 years ago
We're experiencing the same issue.
This JSON Schema:
{
"id": "http://json-schema.org/geo",
"$schema": "http://json-schema.org/draft-06/schema#",
"description": "A geographical coordinate",
"type": "object",
"properties": {
"type": "array",
"items": {
"type": "string"
}
}
}
When dropped into the online example (https://app.quicktype.io/) returns nothing.
It would be expected to see something like:
interface Name {
[index: number]: string;
}
When using this JSON Schema as a source:
When I generate Golang types, I get expected result:
While TypeScript output is:
I expect it to generate: