[API] CborOptions and CborReader/CborWriter
Closed this issue · 3 comments
tibel commented
Scope
CborReader
andCborWriter
are not usingCborOptions
CborOptions
is used by converters only
This brings me to the question:
Why CborReader
and CborWriter
have an Options
property and take CborOptions
as a constructor parameter when it is not used?
Suggestion
- change converter constructors to use
CborOptions
instead ofSerializationRegistry
- remove
Options
property fromCborReader
andCborWriter
I know this would be a breaking change. Just wanted to write it down so it can be considered for next major release.
mcatanzariti commented
You are right!
I can change ObjectConverter constructor, it would not be a major breaking for this class is meant to be used internally.
I'm also going to add a new constructors to CborReader/CborWriter without the CborOption parameter, remove the Options property and mark the existing constructors as obsolete
mcatanzariti commented
fix in 7b7ef31
tibel commented
Did not expect this to happen right now 🤩
Thanks a lot @mcatanzariti