Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properties: add properties prefix as filter/append #105

Merged
merged 1 commit into from
May 31, 2019
Merged

properties: add properties prefix as filter/append #105

merged 1 commit into from
May 31, 2019

Conversation

alonbl
Copy link

@alonbl alonbl commented Aug 31, 2018

Properties may contain multiple objects based on prefix, for example:

a.b.c.name =
a.b.c.id =
x.y.z.name =
x.y.z.color =

To read these formats a prefix should be used as a filter when reading and as
append when generating.

A new optional JavaPropsSchema::prefix() and JavaPropsSchema::withPrefix() are
added to control the behavior.

As each path component is an object, use of ObjectReader::withRootName has a
different meaning so schema property was used.

PR #100

Properties may contain multiple objects based on prefix, for example:

    a.b.c.name =
    a.b.c.id =
    x.y.z.name =
    x.y.z.color =

To read these formats a prefix should be used as a filter when reading and as
append when generating.

A new optional JavaPropsSchema::prefix() and JavaPropsSchema::withPrefix() are
added to control the behavior.

As each path component is an object, use of ObjectReader::withRootName has a
different meaning so schema property was used.

PR #100
@cowtowncoder
Copy link
Member

CLA received, will need to figure out how to merge in 2.10.

@cowtowncoder cowtowncoder merged commit 42a93e9 into FasterXML:master May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants