blob: 61ddea165f179a18e5942f960a2a8aa41a3625f6 [file] [log] [blame]
// Objects without properties should convert correctly.
//
// Issue #734
-- github-workflow.json --
{
"$schema": "http://json-schema.org/draft-07/schema",
"definitions": {
"obj1": {
"oneOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"additionalProperties": true
},
"obj2": {
"type": [ "object", "null" ],
"additionalProperties": true
}
}
}
-- out.err --
-- out.cue --
@jsonschema(schema="http://json-schema.org/draft-07/schema")
_
#obj1: null | {
...
}
#obj2: null | {
...
}