// 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#") | |
null | bool | number | string | [...] | { | |
value?: _ | |
next?: _schema_1 | |
... | |
} | |
} | |
let _schema_1 = _schema |