Naming idea for default identiefier of new `JsonTypeInfo.Id.SIMPLE_NAME`

8 views
Skip to first unread message

Joo Hyuk Kim (김주혁)

unread,
Aug 3, 2023, 6:29:47 PM8/3/23
to jackson-dev
Hello, community! 

As per RFE https://github.com/FasterXML/jackson-databind/issues/4061, we are working on new `JsonTypeInfo.Id.SIMPLE_NAME` option.

At the moment, we are indecisive of what its default identifier should be 🤔.
Default identifiers are like...

- "@class"    for Id.CLASS
- "@c"           for Id.MINIMAL_CLASS
- "@type"      for Id.NAME

....and so on. If anyone can suggest one, make a vote on existing one, feel free to visit https://github.com/FasterXML/jackson-databind/issues/4061#issuecomment-1664714303 and contribute.

Best regards,
Joo Hyuk, Kim

Tatu Saloranta

unread,
Aug 18, 2023, 6:21:17 PM8/18/23
to jacks...@googlegroups.com
I'll add a note on issue, but to me just using "@type" makes most
sense since class name used is not used for locating actual
implementation, but to default "type name" used. Similar to `Id.NAME`.

-+ Tatu +-

>
> Best regards,
> Joo Hyuk, Kim
>
> --
> You received this message because you are subscribed to the Google Groups "jackson-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jackson-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-dev/12eb7c49-0705-4372-978f-4ed26831c230n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages