Xuanwo commented on code in PR #9262:
URL: https://github.com/apache/opendal/pull/9262#discussion_r4720018782


##########
core/core/src/docs/specs/operator-configuration.md:
##########
@@ -74,6 +74,13 @@ or `PT1S`. Empty, zero, negative, or otherwise invalid 
duration values fail with
 invalid values for other supported built-in options also fail with
 `ConfigInvalid`. Available transport options depend on the provider and 
runtime.
 
+An option that holds a map of strings takes a JSON object whose values are
+strings, such as `{"fs.defaultFS":"hdfs://ns"}`. OpenDAL keeps the case of the
+keys inside the object. A key that appears more than once fails with
+`ConfigInvalid`, even when every occurrence has the same value. Any other JSON
+value, including a number, `null`, an array, or a nested object, also fails
+with `ConfigInvalid`.

Review Comment:
   This paragraph does not yet cover empty-string vs. `{}` semantics or 
malformed non-JSON input and option naming in errors. Please specify that an 
empty option string leaves an optional map unset, `{}` supplies an explicit 
empty map, and malformed or invalid map input returns `ConfigInvalid` 
identifying the configuration option.



-- 
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]

Reply via email to