We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting the key in a JSON schema to an int results to the following error:
TypeError [ERR_INVALID_ARG_TYPE]: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received type number (22)
Example schema to reproduce the problem:
{ "_meta": { "topic": "air_quality", "key": "id" }, "id": "datatype.number({ \"min\": 1, \"max\": 100 })", "timestamp": "date.recent", "location": { "latitude": "datatype.number({ \"max\": 90, \"min\": -90})", "longitude": "datatype.number({ \"max\": 180, \"min\": -180})" }, "pm25": "datatype.float({ \"min\": 10, \"max\": 90 })", "pm10": "datatype.float({ \"min\": 10, \"max\": 90 })", "temperature": "datatype.float({ \"min\": -10, \"max\": 120 })", "humidity": "datatype.float({ \"min\": 0, \"max\": 100 })" }
The text was updated successfully, but these errors were encountered:
closed by
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Setting the key in a JSON schema to an int results to the following error:
To Reproduce
Example schema to reproduce the problem:
The text was updated successfully, but these errors were encountered: