Skip to content
New issue

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

Problems generating structs from schema. #194

Open
ilijamt opened this issue Feb 6, 2024 · 1 comment
Open

Problems generating structs from schema. #194

ilijamt opened this issue Feb 6, 2024 · 1 comment

Comments

@ilijamt
Copy link

ilijamt commented Feb 6, 2024

I'm trying to generate the structs from https://unpkg.com/@atlaskit/adf-schema@35.5.1/dist/json-schema/v1/full.json

But I'm greeted with the following error:

go-jsonschema: Failed: error parsing from file ./schema.json: cannot load schema
error parsing JSON file schema.json: failed to unmarshal JSON: failed to unmarshal schema: failed to unmarshal type: failed to unmarshal type: failed to unmarshal type: failed to unmarshal type: json: cannot unmarshal array into Go value of type schemas.ObjectAsType

go-jsonschema: v0.15.0

@survivorbat
Copy link

survivorbat commented May 30, 2024

Having the same issue

Found the problem, I had an array of strings in my schema and somehow that triggered the error. In any case, the error message could be a bit clearer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants