{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coralogix/json-schema/coralogix-owner-schema.json",
  "title": "Owner",
  "description": "Owner.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coralogix-api-keys-service-api-openapi.yml#/components/schemas/Owner",
  "type": "object",
  "oneOf": [
    {
      "required": [
        "userId"
      ],
      "type": "object"
    },
    {
      "required": [
        "teamId"
      ],
      "type": "object"
    },
    {
      "required": [
        "organisationId"
      ],
      "type": "object"
    },
    {
      "type": "object",
      "not": {
        "anyOf": [
          {
            "required": [
              "userId"
            ],
            "type": "object"
          },
          {
            "required": [
              "teamId"
            ],
            "type": "object"
          },
          {
            "required": [
              "organisationId"
            ],
            "type": "object"
          }
        ]
      }
    }
  ],
  "properties": {
    "organisationId": {
      "minLength": 0,
      "type": "string",
      "description": "Organisation identifier of the API key owner."
    },
    "teamId": {
      "minimum": 0,
      "type": "integer",
      "description": "The team id.",
      "format": "int64"
    },
    "userId": {
      "minLength": 0,
      "type": "string",
      "description": "User identifier of the API key owner."
    }
  }
}