FasterXML / FasterXML/jackson-dataformats-binary

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

オープン
#581 コメント 3 件 リアクション 2 件 担当者 0 名 GitHub で見る
3.x cbor
主要言語
Java
スター
347
フォーク
156
平均マージ
3日 3時間
マージ済み PR(30日)
22

説明

(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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。