quicktype
quicktype copied to clipboard
Generate types and converters from JSON, Schema, and GraphQL
``` { "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/foo", "definitions": { "foo": { "type": "object", "properties": { "bar": { "$ref": "bar.json#" }, }, "required": [ "bar" ], }, "title": "foo" } } ```...
During external references resolution, the library fetches external schemas from the Internet. When working behind a corporate proxy, these requests are blocked. A setting allowing the user to pass details...
In the generated typescript there's a function `m` that gives a compiler error. ``` function m(additional: any) { return { props: [], additional }; } ``` The error is `error...
I generate types as a pre-build step for one of my libraries. On the latest release, type generation has begun to fail unexpectedly with no change to input. See the...
When using the `--schema` option with a folder with schema files, quicktype will treat files with the `.schema.json` or `.json` extension like normal JSON files, not as schema files. That...
When running this command `quicktype ESLModels.ts -o CodeGenOutput.swift`, I want the outputted file to contain public access modifiers. The output is technically correct, but if a project uses multiple packages,...
Sometimes I don't need to export all the types that are generated. Instead of having to find/replace `export ` each time I use the tool, it would be nice if...
I'm trying to generate C++ parsers for the [OCI image specs](https://github.com/opencontainers/image-spec/tree/main/schema) and am encountering issues with generating the [annotations](https://github.com/opencontainers/image-spec/blob/main/schema/image-manifest-schema.json#L35) object. I'd seen in #921 that you can add additional schemas...
Generate swift code has compilation warning about deprecated protocol. ``` SamSchema.swift:5645:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONNull' to 'Hashable' by implementing 'hash(into:)' instead public var...
If in json data, i have a value like this: ` "Distance": 20.0,` The result will be` int distance;`