feat(env): underscore field nesting for single _ separators#703
feat(env): underscore field nesting for single _ separators#703aleris wants to merge 1 commit intorust-cli:mainfrom
_ separators#703Conversation
| /// let source = Environment::default() | ||
| /// .list_separator(",") | ||
| /// .with_list_parse_key("my_list"); | ||
| /// ``` |
There was a problem hiding this comment.
unrelated but to clarify documentation which was a bit confusing for me
| } | ||
|
|
||
| #[test] | ||
| fn test_parse_nested_double_separator() { |
There was a problem hiding this comment.
without kebab case conversion, this is to ensure it works in simple mode as a mirror of the next test which enables single underscore nesting
f57ee26 to
69b6c74
Compare
Allow to nest with single `_` even when field names contain underscores via `.underscore_nesting(true)``. Can be used when field names also have `_` with environment overrides. Can be used as an alternative for double underscore separator '__' for nesting. Supports deep nesting. Is off by default.
69b6c74 to
5ca270f
Compare
|
Note that our contributing guide asks to start with Issues, rather than PRs. Moving this to a Draft until there is a mutual understanding and agreement on the problem and the solution. |
|
Ah, ok, thanks, will follow up. |
|
added #704 |
Allow to nest with single
_even when field names contain underscores via.underscore_nesting(true)``. Can be used when field names also have_` with environment overrides.Can be used as an alternative for double underscore separator '__' for nesting.
Supports deep nesting. Is off by default.