psychonautwiki / bifrost

The PsychonautWiki API.
MIT License
51 stars 10 forks source link

Some substances are returning an object instead of float for SubstanceRoaDose.treshold #15

Closed dlbnco closed 4 years ago

dlbnco commented 5 years ago

According to the schema, some properties in SubstanceRoaDose should be a float, but some substances are returning an object. I saw this happening with:

This results in GraphQLError like the following:

{
  "errors": [
    {
      "locations": [
        {
          "column": 193,
          "line": 1
        }
      ],
      "message": "Float cannot represent non numeric value: { max: 2.5, min: 2 }",
      "path": [
        "substances",
        0,
        "roas",
        0,
        "dose",
        "threshold"
      ]
    }
  ]
}
19h commented 4 years ago

Sorry, I never closed this issue but I resolved it shortly after you opening it. I also fixed an identical issue on https://psychonautwiki.org/wiki/Psilocybin_mushrooms.