quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

what is "format": "integer"??

Open Michaelmilk opened this issue 6 years ago • 2 comments

image image

"Integer" is not valid format in JsonSchema, why quicktype expose this?

Michaelmilk avatar Aug 28 '19 10:08 Michaelmilk

Is there a workaround for this? It looks like this breaks json schema parsers.

pllee avatar Apr 10 '20 21:04 pllee

You can disable it:

  const { lines } = await quicktype({
    inputData,
    lang: 'schema',
    rendererOptions: { 'just-types': 'true' },
    inferMaps: false, // <----
    inferEnums: false, // <----
    inferIntegerStrings: false, // <----
    inferDateTimes: false, // <----
  });

dekinderfiets avatar Jun 27 '24 19:06 dekinderfiets