Tides

PAGATO
Da API Hood | Aggiornamento 8 days ago | Weather
Popolaritร 

9.4 / 10

Latenza

517ms

Livello di servizio

100%

Health Check

N/A

Torna a tutte le discussioni

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

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti