{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/main/json-schema/github-code-scanning-default-setup-schema.json",
  "title": "code-scanning-default-setup",
  "description": "Configuration for code scanning default setup.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-code-scanning-api-openapi.yml#/components/schemas/code-scanning-default-setup",
  "type": "object",
  "properties": {
    "state": {
      "description": "Code scanning default setup has been configured or not.",
      "type": "string",
      "enum": [
        "configured",
        "not-configured"
      ]
    },
    "languages": {
      "description": "Languages to be analyzed.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "c-cpp",
          "csharp",
          "go",
          "java-kotlin",
          "javascript-typescript",
          "javascript",
          "python",
          "ruby",
          "typescript",
          "swift"
        ]
      }
    },
    "query_suite": {
      "description": "CodeQL query suite to be used.",
      "type": "string",
      "enum": [
        "default",
        "extended"
      ]
    },
    "updated_at": {
      "description": "Timestamp of latest configuration update.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}