{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/github/json-schema/github-code-quality-setup-schema.json",
  "title": "code-quality-setup",
  "description": "Configuration for code quality setup.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-code-quality-api-openapi.yml#/components/schemas/code-quality-setup",
  "type": "object",
  "properties": {
    "state": {
      "description": "Code quality setup has been configured or not.",
      "type": "string",
      "enum": [
        "configured",
        "not-configured"
      ]
    },
    "languages": {
      "description": "Languages to be analyzed.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "csharp",
          "go",
          "java-kotlin",
          "javascript-typescript",
          "python",
          "ruby",
          "rust"
        ]
      }
    },
    "runner_type": {
      "description": "Runner type to be used.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "standard",
        "labeled",
        null
      ]
    },
    "runner_label": {
      "description": "Runner label to be used if the runner type is labeled.",
      "type": [
        "string",
        "null"
      ]
    },
    "updated_at": {
      "description": "Timestamp of latest configuration update.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "schedule": {
      "description": "The frequency of the periodic analysis.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "weekly",
        null
      ]
    },
    "ai_findings_option": {
      "description": "The AI findings configuration for the repository.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "disabled",
        "on_push",
        null
      ]
    }
  }
}