Tides

有料
よって API Hood | 更新済み il y a 8 jours | Weather
人気

9.4 / 10

レイテンシー

520ms

サービスレベル

100%

Health Check

N/A

すべてのディスカッションに戻る

API Schema Error

Rapid account: Onur Sd
OnurSd
il y a 4 ans

When I copy and paste the API Schema’s extended version to Xcode .json file, I get the following error
"Error: Syntax error in input JSON Forecast: Parser cannot parse input: expected an object key.
Command PhaseScriptExecution failed with a nonzero exit code"

Any help regarding the API doc ?

Rapid account: Apihood
apihood Commented il y a 4 ans

Hello,

I’m sorry, but I don’t know which schema you have in mind. Please, could you share the steps you did for us to be able to investigate the issue.

Are you referring to this schema located in https://rapidapi.com/apihood/api/tides/endpoints?

{
  "type": "object",
  "properties": {
    "disclaimer": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "latitude": {
      "type": "number"
    },
    "longitude": {
      "type": "number"
    },
    "origin": {
      "type": "object",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        },
        "distance": {
          "type": "number"
        },
        "unit": {
          "type": "string"
        }
      }
    },
    "datums": {
      "type": "object",
      "properties": {
        "LAT": {
          "type": "number"
        },
        "HAT": {
          "type": "number"
        }
      }
    },
    "timestamp": {
      "type": "integer"
    },
    "datetime": {
      "type": "string"
    },
    "unit": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    },
    "datum": {
      "type": "string"
    },
    "extremes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "integer"
          },
          "datetime": {
            "type": "string"
          },
          "height": {
            "type": "number"
          },
          "state": {
            "type": "string"
          }
        }
      }
    },
    "heights": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "integer"
          },
          "datetime": {
            "type": "string"
          },
          "height": {
            "type": "number"
          },
          "state": {
            "type": "string"
          }
        }
      }
    },
    "copyright": {
      "type": "string"
    }
  }
}

Thank you

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿