-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: Update usage.rst #337
base: develop
Are you sure you want to change the base?
Conversation
Added documentation for how to consume messages with a message schema
docs/tutorial/usage.rst
Outdated
Validating Messages Against Schema | ||
---------------------------------- | ||
|
||
Before processing a received message, consumers must validate it against the associated message schema. This ensures that the message structure conforms to the expected format defined in the schema. The `jsonschema` library is commonly used for this purpose within the Fedora Messaging project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually not true, the message is already validated as part of the consuming process (in message.get_message()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I should remove this part? any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but that means removing everything actually, because the introduction in "Consuming Messages" is wrong too: it mentions how consumers can validate received messages, and they don't need to.
This isn't really what Jeremy mentions in the ticket comment. |
@abompard I made some changes to this, can review please? |
Added documentation for how to consume messages with a message schema. This addresses #229. It explains how to consume message schema