pinax-network / supported-networks

The Graph supported networks
MIT License
1 stars 0 forks source link

API URL should have type #26

Open YaroShkvorets opened 6 hours ago

YaroShkvorets commented 6 hours ago

Right now "publicApiUrls" is a list of URLs. There can be different API types though, i.e. etherscan, blockscout, dfuse, hyperion

Every URL needs an enum type associated with it.

YaroShkvorets commented 5 hours ago

Replaced with

"publicApiUrls": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "type": {
            "type": "string",
            "enum": ["etherscan", "blockscout", "ethplorer", "other"]
          }
        },
        "required": ["url", "type"],
        "additionalProperties": false
      },
      "description": "List of public API URLs for the chain, i.e. https://api.etherscan.io/api"
    },