generate
generate copied to clipboard
Fails to generate metaschemas
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{}