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

fix: skip message object example validation for non default schemaFormats #778

Conversation

chrispatmore
Copy link
Contributor

Description
Small change to skip the validation of message example objects when a schemaFormat is
set. This allows the parser to validate schemas with non default schemaFormats that are also
providing examples.

This does mean if anyone manually sets schemaFormat to the default the examples will not
be checked. Also it does not validate the examples against the schema for non default formats
so they may be incompatible

Related issue(s)
Fixes #772

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide 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.

@sonarcloud
Copy link

sonarcloud bot commented Jun 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@chrispatmore
Copy link
Contributor Author

FYI raised the fix @jonaslagoni

@jonaslagoni
Copy link
Member

Sorry @chrispatmore, too many notifications, thanks for the ping 👍

Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jonaslagoni
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit 75f8c36 into asyncapi:master Jun 6, 2023
@chrispatmore chrispatmore deleted the 722-non-default-schema-example-validation branch June 6, 2023 14:55
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 2.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

message examples invalid against avro payload
3 participants