Tides

PAID
By API Hood | Updated 9 days ago | Weather
Popularity

9.4 / 10

Latency

520ms

Service Level

100%

Health Check

N/A

Back to All Discussions

API Schema Error

Rapid account: Onur Sd
OnurSd
4 years ago

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 4 years ago

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

Join in the discussion - add comment below:

Login / Signup to post new comments