{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/krimskrams-xyz/json-schema/krimskrams-xyz-package-set-response-schema.json",
  "title": "PackageSetResponse",
  "description": "All selected directory results for one service.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agent-api-listings_krimskrams_xyz_openapi.json#/components/schemas/PackageSetResponse",
  "properties": {
    "format": {
      "type": "string",
      "const": "agent-api-listings-package-set-v1",
      "title": "Format"
    },
    "source": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Source"
    },
    "targets": {
      "items": {
        "type": "string",
        "enum": [
          "mpp.dev",
          "x402-list"
        ]
      },
      "type": "array",
      "title": "Targets"
    },
    "results": {
      "additionalProperties": {
        "$ref": "#/$defs/DirectoryPackageResult"
      },
      "type": "object",
      "title": "Results"
    },
    "readiness": {
      "$ref": "#/$defs/ReadinessReport"
    }
  },
  "type": "object",
  "required": [
    "format",
    "source",
    "targets",
    "results",
    "readiness"
  ],
  "$defs": {
    "CheckResult": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "severity": {
          "type": "string",
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ],
          "title": "Severity"
        },
        "passed": {
          "type": "boolean",
          "title": "Passed"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "fix": {
          "type": "string",
          "title": "Fix"
        }
      },
      "type": "object",
      "required": [
        "id",
        "severity",
        "passed",
        "message",
        "fix"
      ],
      "title": "CheckResult",
      "description": "One buyer-readiness rule and its outcome."
    },
    "DirectoryPackageResult": {
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ready",
            "blocked",
            "unsupported"
          ],
          "title": "Status"
        },
        "reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reason"
        },
        "package": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Package"
        }
      },
      "type": "object",
      "required": [
        "status",
        "reason",
        "package"
      ],
      "title": "DirectoryPackageResult",
      "description": "One target result in a package set."
    },
    "ReadinessReport": {
      "properties": {
        "score": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": 0.0,
          "title": "Score"
        },
        "checks": {
          "items": {
            "$ref": "#/$defs/CheckResult"
          },
          "type": "array",
          "title": "Checks"
        },
        "summary": {
          "type": "string",
          "title": "Summary"
        }
      },
      "type": "object",
      "required": [
        "score",
        "checks",
        "summary"
      ],
      "title": "ReadinessReport",
      "description": "The static readiness report for one OpenAPI document."
    }
  }
}