Closed llogiq closed 2 years ago
Describe the bug The error message on specifying a negative-length array, while not wrong, could be more helpful (and suggest specifying a positive length instead)
To Reproduce Steps to reproduce the behavior:
{ "type": "array", "length": -1, "content": { "type": "object" } }
BadRequest: could not convert from value 'i64(-1)': Type { expected: "U32", got: "i64(-1)" }
Expected behavior
Something like "you specified an array of negative length (-1). Arrays can only have length 0 or higher. Did you mean length 1?"
Environment (please complete the following information):
Describe the bug The error message on specifying a negative-length array, while not wrong, could be more helpful (and suggest specifying a positive length instead)
To Reproduce Steps to reproduce the behavior:
Expected behavior
Something like "you specified an array of negative length (-1). Arrays can only have length 0 or higher. Did you mean length 1?"
Environment (please complete the following information):