Skip to content
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

feat: generate schema from example message #191

Merged
merged 1 commit into from
Mar 12, 2024

Commits on Mar 9, 2024

  1. feat: generate schema from example message

    The generator has been implemented assuming that all message objects
    include a payload with properties. This is used when generating Java
    classes to be able to create attributes that matching the expected
    message properties.
    
    This causes the generator to fail with AsyncAPI documents that don't
    include payload properties. Some such documents will provide a
    sample message instead. For these documents, we can attempt to
    derive a schema from the sample, and use that schema to generate a
    usable set of properties.
    
    Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
    dalelane committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    d29e272 View commit details
    Browse the repository at this point in the history