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