{
    "additionalProperties": {
        "description": "An additional property.",
        "properties": {
            "primitive": {
                "description": "A primitive value.",
                "title": "Primitive",
                "type": "number"
            }
        },
        "title": "Optional",
        "type": "object"
    },
    "properties": {
        "arr": {
            "description": "An array of different items.",
            "items": {
                "anyOf": [
                    {
                        "description": "A nested object.",
                        "properties": {
                            "item1": {
                                "description": "A required property.",
                                "title": "Item1",
                                "type": "string"
                            }
                        },
                        "required": [
                            "item1"
                        ],
                        "title": "Obj",
                        "type": "object"
                    },
                    {
                        "description": "A numeric value.",
                        "title": "Num",
                        "type": "number"
                    }
                ],
                "description": "An array item.",
                "title": "Item"
            },
            "maxItems": 3,
            "title": "Arr",
            "type": "array"
        },
        "obj": {
            "additionalProperties": {
                "description": "An optional value.",
                "title": "Key",
                "type": "string"
            },
            "description": "An object with optional props.",
            "title": "Obj",
            "type": "object"
        }
    }
}