{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "language": {
      "type": "string",
      "description": "The language targeted by the CodeQL query",
      "enum": [
        "actions",
        "cpp",
        "csharp",
        "go",
        "java",
        "javascript",
        "python",
        "ruby",
        "rust",
        "swift"
      ]
    },
    "query_pack": {
      "description": "A Base64-encoded tarball containing a CodeQL query and all its dependencies",
      "type": "string"
    },
    "repositories": {
      "type": "array",
      "description": "List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
      "items": {
        "type": "string"
      }
    },
    "repository_lists": {
      "description": "List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
      "type": "array",
      "maxItems": 1,
      "items": {
        "type": "string"
      }
    },
    "repository_owners": {
      "description": "List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
      "type": "array",
      "maxItems": 1,
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "language",
    "query_pack"
  ],
  "oneOf": [
    {
      "required": [
        "repositories"
      ]
    },
    {
      "required": [
        "repository_lists"
      ]
    },
    {
      "required": [
        "repository_owners"
      ]
    }
  ],
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}