You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to validate the following JSON file against the given CDDL definition fails. As it looks like there is a problem with the optional occurrence indicator (including *, + as well) because removing it will succeed the validation.
{
"name": "foo",
"valid": "no"
}
Argument = {
name: text,
?valid: "yes" / "no"
}
The visible failure:
[ERROR] Validation of "data.json" failed: error validating type choice at the root of the JSON document: unexpected key "valid"