{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cachethq/json-schema/cachethq-component-group-schema.json",
  "title": "ComponentGroup",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cachethq-openapi.json#/components/schemas/ComponentGroup",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "componentGroups"
      ]
    },
    "attributes": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "order": {
          "type": "integer"
        },
        "order_column": {
          "anyOf": [
            {
              "$ref": "#/$defs/ResourceOrderColumnEnum"
            },
            {
              "type": "null"
            }
          ]
        },
        "order_direction": {
          "anyOf": [
            {
              "$ref": "#/$defs/ResourceOrderDirectionEnum"
            },
            {
              "type": "null"
            }
          ]
        },
        "collapsed": {
          "$ref": "#/$defs/ComponentGroupVisibilityEnum"
        },
        "visible": {
          "$ref": "#/$defs/ResourceVisibilityEnum"
        },
        "meta": {
          "type": "array",
          "items": {}
        },
        "created": {
          "type": "object",
          "properties": {
            "human": {
              "type": [
                "string",
                "null"
              ]
            },
            "string": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "human",
            "string"
          ]
        },
        "updated": {
          "type": "object",
          "properties": {
            "human": {
              "type": [
                "string",
                "null"
              ]
            },
            "string": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "human",
            "string"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "order",
        "order_column",
        "order_direction",
        "collapsed",
        "visible",
        "created",
        "updated"
      ]
    },
    "relationships": {
      "type": "object",
      "properties": {
        "components": {
          "type": "object",
          "properties": {
            "data": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/ComponentIdentifier"
              }
            }
          },
          "required": [
            "data"
          ]
        }
      }
    }
  },
  "required": [
    "id",
    "type"
  ],
  "$defs": {
    "ComponentGroupVisibilityEnum": {
      "type": "integer",
      "enum": [
        0,
        1,
        2
      ],
      "title": "ComponentGroupVisibilityEnum"
    },
    "ComponentIdentifier": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "components"
          ]
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "id"
      ],
      "title": "ComponentIdentifier"
    },
    "ResourceOrderColumnEnum": {
      "type": "string",
      "enum": [
        "id",
        "last_updated",
        "name",
        "manual",
        "status"
      ],
      "title": "ResourceOrderColumnEnum"
    },
    "ResourceOrderDirectionEnum": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "title": "ResourceOrderDirectionEnum"
    },
    "ResourceVisibilityEnum": {
      "type": "integer",
      "enum": [
        0,
        1,
        2
      ],
      "title": "ResourceVisibilityEnum"
    }
  }
}