FasterXML / FasterXML/jackson-dataformats-binary

Add some sort of extension point in `CBORParser` for pluggable custom-tag support

Open
#581 3 comments 2 reactions 0 assignees View on GitHub
3.x cbor
Dominant language
Java
Stars
347
Forks
156
Avg merge
3d 3h
Merged PRs (30d)
22

Description

(note: inspired by https://github.com/FasterXML/jackson-core/issues/1428)

Since tag system in CBOR is extensible, users may well want to use custom tags.
Although there is a very bare-bones accessibility mechanism with `CBORParser`, basically 2 methods:

```
public int getCurrentTag() {
return _tagValues.getFirstTag();
}

public TagList getCurrentTags() {
return _tagValues;
}
```

it would be good to have some sort of mechanism (callback(s)?) to allow some automation of handling -- to give low-level access to `CBORParser` state upon encountering tags (either ones not supported by Jackson CBOR module, or maybe all).

I don't know exactly how that should look like so help would be appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.