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(rulesets): add rule to validate message's examples #2126

Merged
merged 5 commits into from
Jun 6, 2022

Conversation

magicmatatjahu
Copy link
Contributor

Fixes #2125

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

Additional context

This PR adds rule to validate message's examples: validate payload and headers field in each example according to the schema in payload and headers.

Part of #2100

@magicmatatjahu magicmatatjahu added enhancement New feature or request AsyncAPI Issues related to the AsyncAPI ruleset labels Apr 12, 2022
@magicmatatjahu magicmatatjahu changed the title Asyncapi/message examples feat(rulesets): add rule to validate message's examples Apr 12, 2022
@magicmatatjahu magicmatatjahu force-pushed the asyncapi/message-examples branch 2 times, most recently from fd7cb7e to 10a82b9 Compare May 19, 2022 15:24
@P0lip P0lip force-pushed the asyncapi/message-examples branch from da965a4 to d5dbf08 Compare June 6, 2022 15:35
@P0lip P0lip merged commit 87ef046 into stoplightio:develop Jun 6, 2022
stoplight-bot pushed a commit that referenced this pull request Jun 7, 2022
# [@stoplight/spectral-rulesets-v1.10.0](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-rulesets-v1.9.0...@stoplight/spectral-rulesets-v1.10.0) (2022-06-07)

### Features

* **rulesets:** add rule to validate AsyncAPI message's examples ([#2126](#2126)) ([87ef046](87ef046))
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version @stoplight/spectral-rulesets-v1.10.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AsyncAPI Issues related to the AsyncAPI ruleset enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a rule to validate message's examples
3 participants