json-schema-to-typescript icon indicating copy to clipboard operation
json-schema-to-typescript copied to clipboard

wrongly transformed array of string

Open eMerzh opened this issue 1 year ago • 0 comments

hello ... i found an issue eslint-types/eslint-define-config that i think comes from the transformation of the jsonschema to typescript

this schema:

https://github.com/eslint/eslint/blob/b91f9dc072f17f5ea79803deb86cf002d031b4cf/lib/rules/camelcase.js#L30

is transformed

to

{
  ignoreDestructuring?: boolean
  ignoreImports?: boolean
  ignoreGlobals?: boolean
  properties?: "always" | "never"
  allow?: [] | [string]
}

the issue is allow should be string[] instead of [string]

eMerzh avatar Mar 21 '24 21:03 eMerzh