generate icon indicating copy to clipboard operation
generate copied to clipboard

Fails to generate metaschemas

Open ieure opened this issue 4 years ago • 0 comments

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{}

ieure avatar Nov 22 '21 16:11 ieure