Open ghost opened 6 years ago
thanks for the msi fix tried to load my json file, a list of entries like this:
[ { "servoName": "leftHand.thumb", "arduino": 0, "servoId": 0, "pin": 2, "minComment": "open", "maxComment": "close", "minDegrees": -120, "maxDegrees": 120, "autoDetach": 1000, "restDegrees": 0, "enabled": true, "servoType": "MG996R", "cableTerminal": 0, "wireColorArduinoTerminal": "", "wireColorTerminalServo": "" }, ... ] but get this error:
how can a string be too short? Are the empty strings a problem?
Juerg
Please post the full schema and full json data.
Yes, empty string has length 0 and might be too short
I testes it with empty strings and it works like a charm :) Maybe the JSON schema is wrong?
thanks for the msi fix tried to load my json file, a list of entries like this:
[ { "servoName": "leftHand.thumb", "arduino": 0, "servoId": 0, "pin": 2, "minComment": "open", "maxComment": "close", "minDegrees": -120, "maxDegrees": 120, "autoDetach": 1000, "restDegrees": 0, "enabled": true, "servoType": "MG996R", "cableTerminal": 0, "wireColorArduinoTerminal": "", "wireColorTerminalServo": "" }, ... ] but get this error:
how can a string be too short? Are the empty strings a problem?
Juerg