quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

$refs in JSON Schema don't resolve properly, even with -S

Open chi-jams opened this issue 2 years ago • 1 comments

I'm trying to generate C++ parsers for the OCI image specs and am encountering issues with generating the annotations object. I'd seen in #921 that you can add additional schemas to a quicktype command, but doing the following command:

script/quickesttype --src-lang schema --lang cpp -S .../schema/defs.json -S .../schema/defs-descriptor.json --src .../schema/image-manifest-schema.json --no-boost --out ./out_file.h

Returns an error that it's unable to infer the type of annotations, even though the type information is present in defs.json.

chi-jams avatar Jun 15 '23 21:06 chi-jams

try .schema instead of .json

refer to: #1278

karaketir16 avatar Oct 18 '23 11:10 karaketir16