{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/web3icon-xyz/json-schema/web3icon-xyz-x402-discovery-schema.json",
  "title": "X402Discovery",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/web3icon-xyz-openapi.json#/components/schemas/X402Discovery",
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "website": {
      "type": "string",
      "format": "uri"
    },
    "status": {
      "type": "string",
      "const": "free"
    },
    "freeAccessPolicy": {
      "type": "string"
    },
    "access": {
      "type": "object",
      "properties": {
        "search": {
          "type": "string",
          "const": "permanently_free"
        },
        "retrieval": {
          "type": "string",
          "const": "permanently_free"
        },
        "mcp": {
          "type": "string",
          "const": "permanently_free"
        },
        "price": {
          "type": "object"
        }
      },
      "required": [
        "search",
        "retrieval",
        "mcp",
        "price"
      ]
    },
    "api": {
      "type": "object"
    },
    "creator": {
      "type": "object"
    },
    "license": {
      "$ref": "#/$defs/AssetLicense"
    },
    "termsUrl": {
      "type": "string",
      "format": "uri"
    },
    "sharePrompts": {
      "type": "object"
    }
  },
  "required": [
    "schemaVersion",
    "name",
    "status",
    "access",
    "api",
    "creator",
    "license",
    "termsUrl"
  ],
  "$defs": {
    "AssetLicense": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "const": "Web3icon Free Use License"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "attribution": {
          "type": "string",
          "const": "not-required"
        },
        "redistribution": {
          "type": "string",
          "const": "prohibited"
        },
        "copyrightHolder": {
          "type": "string",
          "const": "Yuhitsuro"
        },
        "copyrightUrl": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "name",
        "url",
        "attribution",
        "redistribution",
        "copyrightHolder",
        "copyrightUrl"
      ]
    }
  }
}