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

Allow array access via indices in configuration paths #782

Closed

Conversation

KilowattJunkie
Copy link

  • Fixes path expression to access array elements directly #30
  • Adds and modifies peek and find methods to allow indexing of ConfigList objects
  • Enables nested array and object access using indices in paths:
    listConfig.getString("ofObject.0.byteObj.byteVal")
    listConfig.getString("ofArray.2.2")

References
#30

Please note: I haven't (and won't) sign the contributors agreement as I prefer to stay pseudonymous; I maintain a personal fork of the project, and only offer this PR in case someone wants to continue the work. Feel free to implement and/or close as needed.

@lightbend-cla-validator
Copy link
Collaborator

@lightbend-cla-validator
Copy link
Collaborator

- Fixes lightbend#30
- Adds and modifies peek and find methods to allow indexing of ConfigList objects
- Enables nested array and object access using indices in paths:
        listConfig.getString("ofObject.0.byteObj.byteVal")
        listConfig.getString("ofArray.2.2")
@lightbend-cla-validator
Copy link
Collaborator

@ennru
Copy link
Member

ennru commented Jul 6, 2023

We do not intend to extend the functionality of "Typesafe Config" further.
See https://github.com/lightbend/config#maintained-by

@ennru ennru closed this Jul 6, 2023
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.

path expression to access array elements directly
3 participants