{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/felt/json-schema/felt-element-group-list-schema.json",
  "title": "ElementGroupList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/felt-elements-api-openapi.yml#/components/schemas/ElementGroupList",
  "items": {
    "$ref": "#/$defs/ElementGroup"
  },
  "type": "array",
  "$defs": {
    "ElementGroup": {
      "additionalProperties": false,
      "properties": {
        "color": {
          "description": "The color of the element group symbol.",
          "type": "string"
        },
        "elements": {
          "$ref": "#/$defs/GeoJSON"
        },
        "id": {
          "description": "The ID of the element group.",
          "type": "string"
        },
        "name": {
          "description": "The name of the element group.",
          "type": [
            "string",
            "null"
          ]
        },
        "symbol": {
          "description": "The symbol used to represent the element group.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "color",
        "name",
        "symbol",
        "elements"
      ],
      "title": "ElementGroup",
      "type": "object"
    },
    "FeltID": {
      "format": "felt_id",
      "title": "FeltID",
      "type": "string"
    },
    "GeoJSON": {
      "properties": {
        "features": {
          "items": {
            "properties": {
              "geometry": {
                "properties": {
                  "felt:id": {
                    "$ref": "#/$defs/FeltID"
                  },
                  "felt:parentId": {
                    "format": "felt_id",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              "properties": {
                "type": "object"
              },
              "type": {
                "enum": [
                  "Feature"
                ],
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "type": {
          "enum": [
            "FeatureCollection"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "features"
      ],
      "title": "GeoJSON",
      "type": "object"
    }
  }
}