Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/foo", "definitions": { "foo": { "type": "object", "properties": { "bar": { "$ref": "bar.json#" }, }, "required": [ "bar" ], }, "title": "foo" } }
Running quicktype CLI with this Schema produces
Error: Internal error: Defined value expected, but got undefined.
The text was updated successfully, but these errors were encountered:
Let me see how I can help.
Sorry, something went wrong.
I tried running the above schema with quick type. On my machine it gives a helpful message. To be exact it outputs :
$ quicktype test.json Error: Syntax error in input JSON test: Parser cannot parse input: unexpected token '}'.
I think that is pretty valid output. Though providing the line number and column will be pretty good
Well, this just cost me an entire day of debugging. 🤦♂️
For me, the problem was simply malformed CLI arguments combined with missing validation and poor error-reporting.
Might I propose, as an interim fix, we simply make the CLI print out it's configuration options before starting?
That way, we can at least tell if it's trying to do what we're trying to ask for.
My head hurts.
No branches or pull requests
Running quicktype CLI with this Schema produces
The text was updated successfully, but these errors were encountered: