blob: 20e6361f52a5a1f1a4cb0d4dc888ea114647ff09 [file] [log] [blame]
// This test tests the conversion and ordering of $defs.
-- definition.json --
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"value": {},
"next": { "$ref": "#" }
}
}
-- out.cue --
_schema
_schema: {
@jsonschema(schema="http://json-schema.org/draft-07/schema#")
number | null | bool | string | [...] | {
value?: _
next?: _schema_1
...
}
}
let _schema_1 = _schema