{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/configu-cfgu-files/latest.json",
  "title": "JSON Schema for Configu .cfgu files",
  "description": "<https://docs.configu.com/interfaces/.cfgu>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/configu/configu/main/packages/schema/.cfgu.json",
    "sourceSha256": "1a8aa7131e5f7c363970497c7d6d9e2a0fcfa99a1fe7acc051b6925e34267e2a",
    "fileMatch": [
      "*.cfgu.json",
      "*.cfgu.yaml",
      "*.cfgu.yml"
    ],
    "parsers": [
      "json",
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "minLength": 1,
      "description": "Url to JSON Schema"
    },
    "keys": {
      "type": "object",
      "required": [],
      "minProperties": 1,
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ],
        "required": [],
        "allOf": [
          {
            "if": {
              "required": [
                "lazy"
              ]
            },
            "then": {
              "properties": {
                "const": false,
                "default": false
              }
            }
          },
          {
            "if": {
              "required": [
                "const"
              ]
            },
            "then": {
              "properties": {
                "lazy": false,
                "default": false
              }
            }
          },
          {
            "if": {
              "required": [
                "default"
              ]
            },
            "then": {
              "properties": {
                "lazy": false,
                "const": false,
                "required": false
              }
            }
          },
          {
            "if": {
              "required": [
                "required"
              ]
            },
            "then": {
              "properties": {
                "const": false,
                "default": false
              }
            }
          }
        ],
        "nullable": true,
        "properties": {
          "description": {
            "type": "string",
            "minLength": 1
          },
          "label": {
            "type": [
              "string",
              "array"
            ],
            "oneOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "array",
                "minItems": 1,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              }
            ]
          },
          "hidden": {
            "type": "boolean"
          },
          "lazy": {
            "type": "boolean"
          },
          "const": {
            "type": "string",
            "minLength": 1
          },
          "default": {
            "type": [
              "string",
              "number",
              "boolean",
              "object",
              "array"
            ],
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "object"
              },
              {
                "type": "array"
              }
            ]
          },
          "required": {
            "type": "boolean"
          },
          "pattern": {
            "type": "string",
            "minLength": 1
          },
          "enum": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": [
                "string",
                "number",
                "boolean",
                "object",
                "array"
              ],
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "object"
                },
                {
                  "type": "array"
                }
              ]
            }
          },
          "schema": {
            "type": "object",
            "minProperties": 1
          },
          "test": {
            "type": [
              "string",
              "array"
            ],
            "oneOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "array",
                "minItems": 1,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              }
            ]
          }
        },
        "additionalProperties": false
      }
    }
  },
  "required": [],
  "additionalProperties": false,
  "$comment": "https://jsonschema.dev/s/sZY8z"
}
