-
-
Notifications
You must be signed in to change notification settings - Fork 218
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 message traits array path to asyncapi headers schema type object rule #2460
feat(rulesets): add message traits array path to asyncapi headers schema type object rule #2460
Conversation
ping @P0lip |
…s-schema-type-object
Looks good to me, although I'd wait for an approval from our AsyncAPI colleagues as they're the most familiar with it :) |
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.
LGTM 👍
…s-schema-type-object
@P0lip @jonaslagoni thank you for the review folks! Unfortunately, I don't have permissions to merge this branch into |
# [@stoplight/spectral-rulesets-v1.16.0](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-rulesets-v1.15.1...@stoplight/spectral-rulesets-v1.16.0) (2023-04-25) ### Features * **rulesets:** add traits array path to headers rule ([#2460](#2460)) ([9ceabca](9ceabca))
🎉 This PR is included in version @stoplight/spectral-rulesets-v1.16.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
# [6.7.0](v6.6.0...v6.7.0) (2023-05-23) ### Bug Fixes * **core:** improve deep ruleset inheritance ([#2326](#2326)) ([378b4b8](378b4b8)) * **core:** more accurate ruleset error paths ([66b3ca7](66b3ca7)) * **core:** reset path in fn context ([#2389](#2389)) ([3d47ec4](3d47ec4)) * **ref-resolver:** bump @stoplight/json-ref-resolver from ~3.1.4 to ~3.1.5 ([#3635](https://github.com/stoplightio/spectral/issues/3635)) ([215ae93](215ae93)) * **ruleset-bundler:** defaults should be last one ([#2403](#2403)) ([8780cfa](8780cfa)) * **ruleset-bundler:** remove extraneous 'external dependency' warnings ([#2475](#2475)) ([e791534](e791534)) * **ruleset-migrator:** avoid positive lookbehinds ([#2349](#2349)) ([455c324](455c324)) * **ruleset-migrator:** transform functions under overrides ([#2459](#2459)) ([45e817f](45e817f)) * **ruleset-migrator:** use module for require.resolve ([#2405](#2405)) ([d7c0fa4](d7c0fa4)) * **rulesets:** avoid false errors from ajv ([#2408](#2408)) ([92dab78](92dab78)) * **rulesets:** length.min said "must not be longer than" ([#2355](#2355)) ([df3b6f9](df3b6f9)) ### Features * **core:** relax formats validation ([#2151](#2151)) ([de16b4c](de16b4c)) * **core:** support end-user extensions in the rule definitions ([#2345](#2345)) ([365fced](365fced)) * **core:** support x- extensions in the ruleset ([#2440](#2440)) ([964151e](964151e)) * **formats:** support AsyncAPI 2.6.0 ([#2391](#2391)) ([b8e51b4](b8e51b4)) * **formatters:** move formatters to a separate package ([#2468](#2468)) ([664e259](664e259)) * **rulesets:** add traits array path to headers rule ([#2460](#2460)) ([9ceabca](9ceabca)) * **rulesets:** support AsyncAPI 2.6.0 ([#2391](#2391)) ([94a7801](94a7801))
🎉 This PR is included in version 6.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.9.4 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.18.1 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
Recreation of #2402 to fix issues around commitlint
Checklist
Does this PR introduce a breaking change?
Additional context
Currently, the
asyncapi-headers-schema-type-object
will not trigger when theheaders
object is defined explicitly in themessage.traits
array.For example:
The new path added in this PR will match on that array and perform the assertion on the
type
field of any object in that array that has a top level key ofheaders
.