feat(content): introduce typed content envelope#54
Conversation
Provide a stable home for "give me whatever" fields so domain messages do not each reinvent a content-type/bytes pair or reach for google.protobuf.Any when the schema is intentionally open. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryLow Risk Overview The message is intentionally minimal: Reviewed by Cursor Bugbot for commit 90b7ec9. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Warning Review limit reached
More reviews will be available in 14 minutes and 6 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).
|
content_type+bytespair, reach forgoogle.protobuf.Any(which forces consumers to know the inner message), or smuggle JSON throughstring. A stable, named envelope keeps the contract explicit and avoids divergence across packages.trogon.content.v1alpha1.Contentso the package itself conveys context; the message is the noun that the fieldcontent_typeclassifies. Keeps the single-noun-package convention used bytrogon.actor.Actorandtrogon.uuid.Uuid.content_typeanddata. Noextensions/Anyside channel until a concrete need shows up, to avoid an ungoverned escape hatch (what belongs there vs. headers vs. domain fields vs. event metadata is unanswered today).