spec icon indicating copy to clipboard operation
spec copied to clipboard

šŸž Bug: Example message schemas in AsyncAPI 3.0 spec missing required fields

Open Amythystx opened this issue 10 months ago • 4 comments

Describe the bug

Some example message schemas in the AsyncAPI 3.0 specification do not include all required fields defined in their corresponding component schemas. This makes the examples invalid and may confuse developers who rely on them for correct implementation.

To Reproduce

Steps to reproduce the behavior:

  1. Open the AsyncAPI 3.0 specification repository.
  2. Navigate to the examples/ directory.
  3. Inspect a message example (for example, Kafka or AMQP examples).
  4. Compare the example fields with the required fields defined in components/schemas.

Expected behavior

All example message schemas should include every required field defined in their corresponding schema definitions.

Sample document

N/A – issue observed directly in the AsyncAPI 3.0 spec examples.

Screenshots

N/A – screenshots can be added if a specific example is requested.

Additional context

This issue affects developers who use the AsyncAPI spec examples as references and may lead to incorrect or invalid implementations. I am happy to contribute a fix by updating the examples if needed.

In the AsyncAPI 3.0.0 specification, some schema examples are not rendered or resolved correctly in the documentation. While the first example is displayed as expected, the other examples do not show their schema structure and appear unresolved or missing in the rendered output. This creates confusion for users trying to understand how multiple schema examples should be defined and used.

Amythystx avatar Jan 27 '26 06:01 Amythystx

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

github-actions[bot] avatar Jan 27 '26 06:01 github-actions[bot]

To clarify, I noticed this while reviewing the AsyncAPI 3.0 examples, but I realize the issue description currently lacks a concrete reference.

Before making any changes, I’d like to confirm:

  • whether missing required fields in examples is considered a bug, or
  • whether unresolved / partially rendered schemas are expected behavior.

If helpful, I can update the issue with a specific example file and line reference once confirmed.

Amythystx avatar Jan 27 '26 13:01 Amythystx

Hi! I've identified the fix, the myMessage example in the Multi Format Schema Object - Avro section of asyncapi.md is missing name and title fields.

I've pushed a fix on my fork and would love to contribute. Could someone assign this to me? Thanks!

Anirudh-x avatar Feb 19 '26 10:02 Anirudh-x

thanks! Since this issue was originally opened by me, I’m currently waiting for approval/assignment before proceeding with the fix. To avoid duplicate work, could we please close any related PRs for now? I’m happy to continue once I get confirmation. waiting for approval.

Amythystx avatar Feb 19 '26 11:02 Amythystx