chitralverma opened a new issue, #9313:
URL: https://github.com/apache/opendal/issues/9313
### Feature Description
Add the map-valued service options to the generated .NET service configs:
`S3ServiceConfig.AssumeRoleSessionTags` and `HdfsNativeServiceConfig.Options`,
typed `IReadOnlyDictionary<string, string>?`.
### Problem and Solution
The .NET generator skips `HashMap` fields in `dev/src/generate/dotnet.rs`,
with the comment "A HashMap config has no string encoding in the options map".
`IServiceConfig` users therefore cannot set these options. Since #9262, core
reads a map-valued option from a JSON object string, so the generated
`ToOptions()` can emit one. `null` leaves the option unset, an empty dictionary
becomes `{}`, and keys keep their case. The binding would encode the dictionary
with `System.Text.Json.Utf8JsonWriter`, which ships with .NET and needs no
reflection. The string-dictionary constructor, `new Operator("s3", options)`,
already accepts a JSON object string for these keys.
### Additional Context
- Follow-up to #9261 (closed) and #9262. #9261 listed this as one of four
follow-ups.
- Checked against main (4ae8e6122): neither generated class has the
property, and `ToOptions()` cannot emit it.
- The default .NET native library enables `services-s3` but not
`services-hdfs-native`. The generated `HdfsNativeServiceConfig` class already
exists.
### Are you willing to contribute to the development of this feature?
- [x] Yes, I am willing to contribute to the development of this feature.
*Drafted with AI assistance (Claude Code, Claude Opus 5.5) and 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]