FasterXML / FasterXML/jackson-dataformats-binary

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

Abierto
#581 3 comentarios 2 reacciones 0 asignados Ver en GitHub
3.x cbor
Lenguaje dominante
Java
Estrellas
347
Forks
156
Merge medio
3 d 3 h
PR fusionados (30 d)
22

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.