{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-c4-l1-response-schema.json",
  "title": "C4L1Response",
  "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/C4L1Response",
  "properties": {
    "system": {
      "$ref": "#/$defs/C4SystemResponse"
    },
    "people": {
      "items": {
        "$ref": "#/$defs/C4PersonResponse"
      },
      "type": "array",
      "title": "People"
    },
    "external_systems": {
      "items": {
        "$ref": "#/$defs/C4ExternalSystemResponse"
      },
      "type": "array",
      "title": "External Systems"
    },
    "relations": {
      "items": {
        "$ref": "#/$defs/C4RelationResponse"
      },
      "type": "array",
      "title": "Relations"
    }
  },
  "type": "object",
  "required": [
    "system",
    "people",
    "external_systems",
    "relations"
  ],
  "$defs": {
    "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"
    },
    "C4PersonResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "default": ""
        },
        "kind": {
          "type": "string",
          "title": "Kind",
          "default": "user"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "C4PersonResponse"
    },
    "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"
    },
    "C4SystemResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "C4SystemResponse"
    }
  }
}