Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to disallow repeated keys in CBOR #2681

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Commits on May 20, 2024

  1. Add ability to disallow repeated keys in CBOR

    Fixes Kotlin#2662 by adding
    a `visitKey` method to `CompositeDecoder`; map and set serializers should
    call this so that decoders have an opportunity to throw an error when a
    duplicate key is detected.
    
    A new config option `Cbor.allowDuplicateKeys` can be set to false to
    enable this new behavior. This can form the basis of a Strict Mode in the
    future.
    
    Also fixes a typo in an unrelated method docstring.
    timmc committed May 20, 2024
    Configuration menu
    Copy the full SHA
    e2945f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47cfbc1 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    d8ddd99 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'dev' into timmc/cbor-strict

    # Conflicts:
    #	formats/cbor/api/kotlinx-serialization-cbor.klib.api
    timmc committed May 21, 2024
    Configuration menu
    Copy the full SHA
    4f56296 View commit details
    Browse the repository at this point in the history