blob: 6f33439e5cdc21cc073e5e8a66086b788b570b08 [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#")
null | bool | number | string | [...] | {
@jsonschema(id="http://cuelang.org/go/encoding/openapi/testdata/order.json")
value?: _
next?: _schema_1
...
}
}
let _schema_1 = _schema