{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/currents-dev/json-schema/currents-dev-spec-files-response-schema.json",
  "title": "SpecFilesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/currents-dev-spec-files-api-openapi.yml#/components/schemas/SpecFilesResponse",
  "type": "object",
  "required": [
    "status",
    "data"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "OK"
      ]
    },
    "data": {
      "type": "object",
      "properties": {
        "list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SpecFile"
          }
        },
        "total": {
          "type": "integer",
          "description": "Total number of spec files"
        },
        "nextPage": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "Next page number or false if no more pages"
        }
      }
    }
  },
  "$defs": {
    "SpecFile": {
      "type": "object",
      "properties": {
        "signature": {
          "type": "string",
          "description": "Unique spec file signature"
        },
        "spec": {
          "type": "string",
          "description": "Spec file path"
        },
        "metrics": {
          "type": "object",
          "properties": {
            "avgDuration": {
              "type": "number",
              "description": "Average duration in milliseconds"
            },
            "failedExecutions": {
              "type": "integer"
            },
            "failureRate": {
              "type": "number"
            },
            "flakeRate": {
              "type": "number"
            },
            "flakyExecutions": {
              "type": "integer"
            },
            "fullyReported": {
              "type": "integer"
            },
            "overallExecutions": {
              "type": "integer"
            },
            "suiteSize": {
              "type": "integer"
            },
            "timeoutExecutions": {
              "type": "integer"
            },
            "timeoutRate": {
              "type": "number"
            }
          }
        }
      }
    }
  }
}