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

Fails to generate metaschemas #77

Open
ieure opened this issue Nov 22, 2021 · 0 comments
Open

Fails to generate metaschemas #77

ieure opened this issue Nov 22, 2021 · 0 comments

Comments

@ieure
Copy link
Contributor

ieure commented Nov 22, 2021

I thought I'd generate structs for the JSON Schema meta-schema (the schema for a schema expressed in JSON Schema), so I could build my schema and let Go's type system enforce its validity.

The core schema fails with an error:

Failure generating structs:  processReference: reference "meta/core#/$defs/anchorString" not found at "#/properties/$recursiveAnchor"

The hyper schema doesn't error, but produces unusable output. This is the complete generated code:

// Code generated by schema-generate. DO NOT EDIT.

package main

// JSONHyperSchema
type JSONHyperSchema interface{}
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

1 participant