Problem
BigInteger and BigDecimal types currently fail at codegen time when used with CBOR protocol.
Specification Requirements
According to the Smithy RPC v2 CBOR spec:
- BigInteger: Should use Major Type 6, tags 2 (unsigned bignum) or 3 (negative bignum)
- BigDecimal: Should use Major Type 6, tag 4 (decimal fraction)
Current State
aws-smithy-cbor doesn't expose methods for these CBOR tags
- The underlying
minicbor library supports tags (used internally for timestamps)
- Codegen currently fails with an error when BigInteger/BigDecimal are used with CBOR
Related
Problem
BigInteger and BigDecimal types currently fail at codegen time when used with CBOR protocol.
Specification Requirements
According to the Smithy RPC v2 CBOR spec:
Current State
aws-smithy-cbordoesn't expose methods for these CBOR tagsminicborlibrary supports tags (used internally for timestamps)Related