quicktype throws ' quicktype cannot infer this type because there is no data about it in the input.' #3113
Unanswered
retiredracer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A bit of noob here with JSON and schema (I grew up in the XML realm....).
I have two very simple JSON schema files - address.json and person.json (attached).
Here's the 'quicktype' cmd:
c:\programs\quicktype\quicktype ^
--debug=print-schema-resolving ^
--src-lang schema --lang cpp ^
--namespace myapp ^
--type-style pascal-case ^
--member-style camel-case ^
--enum-type enum-class ^
--include-location global-include ^
--source-style multi-source ^
-o output/models.hpp ^
person.json address.json
At the end of the quicktype run, it throws the following message:
Issue in line 18: quicktype cannot infer this type because there is no data about it in the input.
18: using Address = nlohmann::json;
this is in the 'output/models.hpp' file - the only real line of code in that file.
In the end I have a good-sized pile of JSON schema files, they all follow the pattern of the original 'address.json' file.
What to do? thanks!
address.json
person.json
address.fix.json
All reactions