The value of this keyword MUST be an array. There are no restrictions placed on the values within the array. [...]
However, the schema struct defines:
Examples []string
In consequence it fails if there is a number in the examples array. The error message then looks like this:
the JSON type 'number' cannot be converted into the Go 'string' type on struct 'Schema', field 'Examples'. See input file xxxxxx.json line 553, character 1
I believe this is fixed by just changing []string to []interface{}. Since the Examples field seems to be unused in the generator the will be no conflict.
As written here:
However, the
schema
struct defines:In consequence it fails if there is a number in the examples array. The error message then looks like this:
I believe this is fixed by just changing
[]string
to[]interface{}
. Since theExamples
field seems to be unused in the generator the will be no conflict.