Tides

PAGO
Por API Hood | Atualizado vor 4 Tagen | Weather
Popularidade

9.4 / 10

Latência

534ms

Nível de serviço

100%

Health Check

N/A

Voltar para todas as discussões

API Schema Error

Rapid account: Onur Sd
OnurSd
vor 4 Jahren

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 vor 4 Jahren

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

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários