Skip to content
New issue

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

No valid document #27

Open
ghost opened this issue Nov 1, 2018 · 3 comments
Open

No valid document #27

ghost opened this issue Nov 1, 2018 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Nov 1, 2018

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:

image

how can a string be too short? Are the empty strings a problem?

Juerg

@RicoSuter
Copy link
Owner

Please post the full schema and full json data.

@RicoSuter
Copy link
Owner

Yes, empty string has length 0 and might be too short

@mariomurrent-softwaresolutions
Copy link

mariomurrent-softwaresolutions commented Oct 12, 2020

I testes it with empty strings and it works like a charm :) Maybe the JSON schema is wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants