chitralverma commented on PR #9262:
URL: https://github.com/apache/opendal/pull/9262#issuecomment-7218984061
Done in 23e7f0507.
- `serde_util.rs` parses the object with a visitor that rejects a repeated
key instead of collecting it into a `HashMap`. A duplicate now fails with
`ConfigInvalid` naming the option, for example ``parse config 'options' failed:
expected a JSON object with unique keys and string values: duplicate key
`fs.defaultFS` at line 1 column 53``.
- `operator-configuration.md` replaces the last-wins sentence with the
rejection rule, including identical key-value pairs.
- New tests pass raw JSON text that repeats `fs.defaultFS`, once with
different values and once with the same pair. Another case checks that `{}`
sets an explicit empty map on an `Option` field. Each new test fails when the
behavior it guards is mutated: overwriting instead of rejecting, parsing with
`serde_json::from_str` into a `HashMap`, and treating `{}` as unset.
*AI-generated, reviewed by the author.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]