cbor-wg / CBORbis

The draft leading up to RFC8949
https://www.rfc-editor.org/rfc/rfc8949.html
Other
5 stars 12 forks source link

rfc7049bis recommends unrecognized tags cause an error #182

Closed mcr closed 4 years ago

mcr commented 4 years ago

RFC7049 specified that CBOR tags which were not recognized should be ignored. RFC7049bis wishes to change this behaviour such that unknown tags would not be ignored, but would at least, be presented to the application for further determination. This is a change that would render existing CBOR parsers instantly invalid. The suggestion is that parsers should be in RFC7049 mode by default, and applications that want RFC7049bis behaviour should initialize the parser with an option that enables it [or use a new parser with awareness].

Applications that want to make use of tags defined in RFC7049bis need to put the parser in RFC7049bis mode. ??

cabo commented 4 years ago

Long discussion in https://mailarchive.ietf.org/arch/browse/cbor/?gbt=1&index=S6TmVACm7I6tHrbyDwVvgOikIM8 -- can we close this issue based on that discussion (and the small nit addressed in #187)?

mcr commented 4 years ago

Agreed. Works for me.