{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apiosk-com/json-schema/apiosk-com-european-capability-resolution-schema.json",
  "title": "EuropeanCapabilityResolution",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apiosk-com-openapi.json#/components/schemas/EuropeanCapabilityResolution",
  "type": "object",
  "required": [
    "capability",
    "sources",
    "ready_source_count"
  ],
  "properties": {
    "capability": {
      "type": "string"
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "ready_source_count": {
      "type": "integer",
      "minimum": 0
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "primary",
              "supplementary"
            ]
          },
          "ready": {
            "type": "boolean"
          },
          "operations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string"
                },
                "endpoint_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "method": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                },
                "inputs": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "input": {
                  "type": "object"
                },
                "missing_input": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "invalid_input": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "ready": {
                  "type": "boolean"
                },
                "output": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "freshness_seconds": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "price": {
                  "type": "object"
                },
                "run_url": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}