...
1// This test tests the conversion and ordering of $defs.
2
3-- definition.json --
4{
5 "$schema": "http://json-schema.org/draft-07/schema#",
6
7 "$id": "http://cuelang.org/go/encoding/openapi/testdata/order.json",
8
9 "properties": {
10 "value": {},
11 "next": { "$ref": "#" }
12 }
13}
14
15-- out.cue --
16_schema
17_schema: {
18 @jsonschema(schema="http://json-schema.org/draft-07/schema#")
19 null | bool | number | string | [...] | {
20 @jsonschema(id="http://cuelang.org/go/encoding/openapi/testdata/order.json")
21 value?: _
22 next?: _schema_1
23 ...
24 }
25}
26
27let _schema_1 = _schema
View as plain text