chitralverma opened a new pull request, #9317:
URL: https://github.com/apache/opendal/pull/9317
# Which issue does this PR close?
Closes #9314.
Refs #9261, #9262.
# Rationale for this change
The generated service snippets used `...` for map-valued options, which
fails with `ConfigInvalid` if copied. Since #9262, a map option takes a JSON
object string, and a JSON example needs escaping inside each binding's string
literal.
# What changes are included in this PR?
- `docs.rs` renders `{"key":"value"}` for map options and escapes `\` and
`"` (and `#` for Ruby) when writing a value as a string literal.
- The regenerated `website/data/services.json` changes exactly 10 commented
snippet lines: the S3 `assume_role_session_tags` line (Rust, Java, Python,
Node.js, Ruby, Go) and the hdfs-native `options` line (Rust, Python, Node.js,
Go). Every other snippet and every `configs` entry is byte-identical.
- The service page hint states the map encoding.
- Unit tests pin the rendered line for each of the eight bindings, parse the
Rust literal and its JSON value, and check Ruby `#` escaping. Each test fails
when the placeholder or the escaping it covers is reverted.
# Are there any user-facing changes?
Website content only.
# Breaking changes
# AI Usage Statement
- Harness: Claude Code (in T3 Code)
- Model: Claude Opus 5.5 (`claude-opus-5-5`)
- Effort: max (planning), medium (implementation), xhigh (orchestration and
review)
- Role: Planned the change, implemented the generator change and tests,
regenerated the data, ran the checks above, and drafted this description. The
author reviewed them.
--
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]