-- unsupported.json -- { "$schema": "http://json-schema.org/draft-07/schema", "definitions": { "ref": { "properties": { "branches": { "type": "object" }, "branches-ignore": { "type": "object" } }, "oneOf": [ { "type": "object", "allOf": [ { "not": { "required": [ "branches", "branches-ignore" ] } } ] }, { "type": "null" } ] } } } -- out.cue -- @jsonschema(schema="http://json-schema.org/draft-07/schema") _ #ref: null | { branches?: { ... } "branches-ignore"?: { ... } ... }