Skip to content

Fix Duration doc examples to use message literal syntax#501

Merged
rodaine merged 1 commit into
mainfrom
rodaine/fix-duration-doc-examples
Jul 9, 2026
Merged

Fix Duration doc examples to use message literal syntax#501
rodaine merged 1 commit into
mainfrom
rodaine/fix-duration-doc-examples

Conversation

@rodaine

@rodaine rodaine commented Jul 9, 2026

Copy link
Copy Markdown
Member

The const, lt, lte, in, and not_in examples in DurationRules showed string values like 5s, which do not compile for google.protobuf.Duration-valued option fields. Replace them with message literal syntax matching the other correct example docs.

Fixes #499

The const, lt, lte, in, and not_in examples in DurationRules showed
string values like "5s", which do not compile for
google.protobuf.Duration option fields. Replace them with message
literal syntax matching the gt, gte, and example docs.

Fixes #499
@rodaine
rodaine requested a review from pkwarren July 9, 2026 14:44
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJul 9, 2026, 2:44 PM

@rodaine
rodaine merged commit 2bcb225 into main Jul 9, 2026
9 checks passed
@rodaine
rodaine deleted the rodaine/fix-duration-doc-examples branch July 9, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] WKT Duration doc has incorrect examples

3 participants