{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-c4-l2-response-schema.json",
  "title": "C4L2Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-c4-api-openapi.yml#/components/schemas/C4L2Response",
  "properties": {
    "containers": {
      "items": {
        "$ref": "#/$defs/C4ContainerResponse"
      },
      "type": "array",
      "title": "Containers"
    },
    "external_systems": {
      "items": {
        "$ref": "#/$defs/C4ExternalSystemResponse"
      },
      "type": "array",
      "title": "External Systems"
    },
    "relations": {
      "items": {
        "$ref": "#/$defs/C4RelationResponse"
      },
      "type": "array",
      "title": "Relations"
    }
  },
  "type": "object",
  "required": [
    "containers",
    "external_systems",
    "relations"
  ],
  "$defs": {
    "C4ContainerResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "path": {
          "type": "string",
          "title": "Path"
        },
        "language": {
          "type": "string",
          "title": "Language"
        },
        "file_count": {
          "type": "integer",
          "title": "File Count"
        },
        "symbol_count": {
          "type": "integer",
          "title": "Symbol Count"
        },
        "hotspot_count": {
          "type": "integer",
          "title": "Hotspot Count",
          "default": 0
        },
        "dead_count": {
          "type": "integer",
          "title": "Dead Count",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "path",
        "language",
        "file_count",
        "symbol_count"
      ],
      "title": "C4ContainerResponse"
    },
    "C4ExternalSystemResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        },
        "category": {
          "type": "string",
          "title": "Category"
        },
        "ecosystem": {
          "type": "string",
          "title": "Ecosystem"
        },
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Version"
        },
        "io_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Io Kind"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "display_name",
        "category",
        "ecosystem"
      ],
      "title": "C4ExternalSystemResponse"
    },
    "C4RelationResponse": {
      "properties": {
        "source_id": {
          "type": "string",
          "title": "Source Id"
        },
        "target_id": {
          "type": "string",
          "title": "Target Id"
        },
        "label": {
          "type": "string",
          "title": "Label",
          "default": ""
        },
        "edge_count": {
          "type": "integer",
          "title": "Edge Count",
          "default": 1
        },
        "edge_types": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Edge Types"
        },
        "coupling": {
          "type": "string",
          "title": "Coupling",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "source_id",
        "target_id"
      ],
      "title": "C4RelationResponse"
    }
  }
}