{
  "$comment": "GENERATED FILE — DO NOT EDIT DIRECTLY. Source: packages/schemas/src. Regenerate with `npm run generate:json-schema --workspace=@spacecorp/schemas`.",
  "$id": "https://spacecorp.io/schemas/relationship.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^rel-[a-z0-9][a-z0-9-]*$"
    },
    "source": {
      "type": "string",
      "pattern": "^scp-[a-z0-9][a-z0-9-]*$"
    },
    "target": {
      "type": "string",
      "pattern": "^scp-[a-z0-9][a-z0-9-]*$"
    },
    "type": {
      "type": "string",
      "enum": [
        "depends_on",
        "uses",
        "produces",
        "documents",
        "integrates_with",
        "derived_from",
        "supersedes",
        "related_to"
      ]
    }
  },
  "required": [
    "id",
    "source",
    "target",
    "type"
  ],
  "additionalProperties": false
}
