OpenSearch/libs/x-content
Alan Woodward ab6b86bac9 Add option to ObjectParser to consume unknown fields (#42491)
ObjectParser has two ways of dealing with unknown fields: ignore them entirely,
or throw an error. Sometimes it can be useful instead to gather up these unknown
fields and record them separately, for example as arbitrary entries in a map.

This commit adds the ability to specify an unknown field consumer on an ObjectParser,
called with the field name and parsed value of each unknown field encountered during
parsing. The public API of ObjectParser is largely unchanged, with a single new
constructor method and interface definition.
2019-05-31 11:33:47 +01:00
..
licenses CORE: Upgrade to Jackson 2.8.11 (#32670) 2018-08-08 12:04:25 +02:00
src Add option to ObjectParser to consume unknown fields (#42491) 2019-05-31 11:33:47 +01:00
build.gradle Upgrade hamcrest to 2.1 (#41464) 2019-04-24 23:40:03 -07:00