Jackson JSON Processor
  1. Jackson JSON Processor
  2. JACKSON-766

Would be nice to recognize unknown properties even when using "unwrapped" POJOs

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The new "unwrapped" POJOs (1.9 has basic support; 2.0 support with prefix/suffix renaming) are nice addition, but they have one drawback: if a POJO has any unwrapped properties, it can no longer distinguish between JSON properties that map cleanly POJO properties, and ones that do not ("unknown" properties).
      As result, it is not possible to detect and report such unknown properties.

      It would be nice to improve this, since mis-mapping of properties is a common source of problems; and especially so when using unwrapping and prefixes/suffixes.

        Activity

          People

          • Assignee:
            Tatu Saloranta
            Reporter:
            Tatu Saloranta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: