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
That may look a bit strange; in the broader context it's trying to express that the data must either have id1 or id2 or both, and that in any case the values of the id1 and id2 items must be text.
The problem is that with cddl validate the following JSON is accepted:
{
"id1": "example",
"id2": 2
}
Changing the Root to either Choice1 or Choice2 alone causes the validation to fail as expected. Changing the input to a JSON object that's missing either id1 or id2 also fails as expected.
Apologies if I've misunderstood how CDDL is supposed to work in this case, but it seems like possibly a bug in the handling of cuts and choices?
The text was updated successfully, but these errors were encountered:
I have some CDDL like
That may look a bit strange; in the broader context it's trying to express that the data must either have
id1
orid2
or both, and that in any case the values of theid1
andid2
items must be text.The problem is that with
cddl validate
the following JSON is accepted:Changing the Root to either
Choice1
orChoice2
alone causes the validation to fail as expected. Changing the input to a JSON object that's missing eitherid1
orid2
also fails as expected.Apologies if I've misunderstood how CDDL is supposed to work in this case, but it seems like possibly a bug in the handling of cuts and choices?
The text was updated successfully, but these errors were encountered: