{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildpulse-io/json-schema/buildpulse-io-tests-response-schema.json",
  "title": "TestsResponse",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildpulse-io-openapi.yaml#/components/schemas/TestsResponse",
  "type": "object",
  "required": [
    "count",
    "tests",
    "metadata"
  ],
  "properties": {
    "count": {
      "type": "integer",
      "format": "int64"
    },
    "tests": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Test"
      }
    },
    "metadata": {
      "$ref": "#/$defs/Metadata"
    }
  },
  "$defs": {
    "Metadata": {
      "type": "object",
      "required": [
        "after",
        "limit"
      ],
      "properties": {
        "after": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor for the next page; `null` if there is no next page."
        },
        "limit": {
          "type": "integer"
        }
      }
    },
    "Result": {
      "type": "object",
      "required": [
        "recorded_at",
        "build_url",
        "message"
      ],
      "properties": {
        "recorded_at": {
          "type": "string",
          "format": "date-time"
        },
        "build_url": {
          "type": "string",
          "format": "uri"
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "Failure message (negative result) or always `null`\n(positive result, to match legacy behavior).\n"
        }
      }
    },
    "Test": {
      "type": "object",
      "required": [
        "id",
        "name",
        "suite",
        "class",
        "file",
        "disruptiveness",
        "nondeterministic_negative_result_count",
        "nondeterminism_first_recorded_at",
        "latest_nondeterministic_commit_oid",
        "latest_nondeterministic_negative_result",
        "latest_nondeterministic_positive_result"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "24-character MongoDB ObjectID hex."
        },
        "name": {
          "type": "string"
        },
        "suite": {
          "type": "string"
        },
        "class": {
          "type": "string"
        },
        "file": {
          "type": "string"
        },
        "disruptiveness": {
          "type": "number",
          "format": "float",
          "description": "Disruptiveness ratio, truncated to 3 decimal places.\nRanges from 0.0 (deterministic) to 1.0 (always flakes).\n"
        },
        "nondeterministic_negative_result_count": {
          "type": "integer"
        },
        "nondeterminism_first_recorded_at": {
          "type": "string",
          "format": "date-time"
        },
        "latest_nondeterministic_commit_oid": {
          "type": "string"
        },
        "latest_nondeterministic_negative_result": {
          "$ref": "#/$defs/Result"
        },
        "latest_nondeterministic_positive_result": {
          "$ref": "#/$defs/Result"
        }
      }
    }
  }
}