quicktype
quicktype copied to clipboard
Generate types and converters from JSON, Schema, and GraphQL
node:internal/modules/cjs/loader:1080 throw err; ^ Error: Cannot find module 'wordwrap' Require stack: - /usr/local/lib/node_modules/quicktype/dist/index.js at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15) at Module._load (node:internal/modules/cjs/loader:922:27) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:110:18) at Object. (/usr/local/lib/node_modules/quicktype/dist/index.js:46:18) at Module._compile...
I'm color blind, and I find it very difficult to see the cursor when the JSON is invalid because red is the color I see the least. It would be...
https://github.com/glideapps/quicktype/blob/f762a526d0e3cc041cbb277e7b0d02baed784bdf/packages/quicktype-core/src/input/JSONSchemaInput.ts#L45-L46 I'm on typescript 4.2.3 and this isn't valid syntax. This is though: ```ts import type { RunContext } from "../Run"; import type { Input } from "./Inputs"; ```
The members of [`iodepth_level`](https://gist.github.com/vtta/54aeec58135cc01ade23695588007d1b#file-fio-json-L467) in the sample json code are floats, but quicktype recognize them as ints ([`IodepthLevel`](https://gist.github.com/vtta/54aeec58135cc01ade23695588007d1b#file-fio-py-L161) in the output python code) I'm using the web app at https://app.quicktype.io/...
Adds support for `unknown` (and it's flow equivalent) in TypeScript. First PR and I made this constribution mostly via the GitHub UI, happy to do more if needed! Closes #1619
I have been using the following command to generate Dart model classes locally: ```bash npm start -- "--lang dart --null-safety --final-props --copy-with -o jsons/sample.dart jsons/sample.json" ``` While the command works...
Hey there. First of all, I'd like to thank you all for this tool, it's awesome. I'd like to use quicktype a lot on PHP, but I've tried it and...
My problem originated when I wanted to use a "$schema" in my JSON data, which gives Visual Studio Code users a better quality of life: Each fields could emit a...
Here is the result of generated enum keys: enum class WeightUomCodeType(val value: String) { Grm("GRM"), Kgm("KGM"), Lbr("LBR"), Stn("STN"), Tne("TNE"); companion object { fun fromValue(value: String): WeightUomCodeType = when (value) {...
Kotlin generated data classes use string instead of date or datetime Here is the part of the schema: "properties": { "PlannedDateTime" : { "type" : "string", "format" : "date-time", "examples"...