quicktype
quicktype copied to clipboard
$refs in JSON Schema don't resolve properly, even with -S
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.
try .schema instead of .json
refer to: #1278