Closed itamarst closed 2 years ago
Changing the schema to:
response = {
"success": bool,
"data": {0* label: [* tstr]}
}
label = tstr
fixes it, as a workaround (and suggestion for what the bug is).
Thanks @itamarst. I see the issue. Will push up a fix.
Consider this schema:
You can have zero labels, which validates fine as JSON:
Or one label, also validates fine as JSON:
When generating CBOR with Python's
cbor2
for equivalent CBOR serializations,one.cbor
validates just fine.zero.cbor
fails to validate, however:CBOR files are in following zip:
cbor.zip