1-- unsupported.json --
2{
3  "$schema": "http://json-schema.org/draft-07/schema",
4  "definitions": {
5    "ref": {
6      "properties": {
7        "branches": {
8          "type": "object"
9        },
10        "branches-ignore": {
11          "type": "object"
12        }
13      },
14      "oneOf": [
15        {
16          "type": "object",
17          "allOf": [
18            {
19              "not": {
20                "required": [
21                  "branches",
22                  "branches-ignore"
23                ]
24              }
25            }
26          ]
27        },
28        {
29          "type": "null"
30        }
31      ]
32    }
33  }
34}
35
36
37-- out.cue --
38@jsonschema(schema="http://json-schema.org/draft-07/schema")
39_
40
41#ref: null | {
42	branches?: {
43		...
44	}
45	"branches-ignore"?: {
46		...
47	}
48	...
49}
50