{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Flat", "type": "object", "properties": { "f": { "type": "number", "format": "float" } }, "required": [ "f" ], "allOf": [ { "oneOf": [ { "type": "object", "properties": { "B": { "type": "boolean" } }, "required": [ "B" ], "additionalProperties": false }, { "type": "object", "properties": { "S": { "type": "string" } }, "required": [ "S" ], "additionalProperties": false } ] }, { "oneOf": [ { "type": "object", "properties": { "U": { "type": "integer", "format": "uint32", "minimum": 0 } }, "required": [ "U" ], "additionalProperties": false }, { "type": "object", "properties": { "F": { "type": "number", "format": "double" } }, "required": [ "F" ], "additionalProperties": false } ] } ] }