feat(rulesets): add message traits array path to asyncapi headers schema type object rule#2402
Closed
CalemRoelofsSB wants to merge 14 commits into
stoplightio:developfrom
CalemRoelofsSB:feat/rulesets/add-path-to-asyncapi-headers-schema-type-object
Closed
feat(rulesets): add message traits array path to asyncapi headers schema type object rule#2402CalemRoelofsSB wants to merge 14 commits intostoplightio:developfrom CalemRoelofsSB:feat/rulesets/add-path-to-asyncapi-headers-schema-type-object
CalemRoelofsSB wants to merge 14 commits into
stoplightio:developfrom
CalemRoelofsSB:feat/rulesets/add-path-to-asyncapi-headers-schema-type-object
Conversation
MateuszPol
previously approved these changes
Feb 21, 2023
# [@stoplight/spectral-ruleset-migrator-v1.9.2](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-ruleset-migrator-v1.9.1...@stoplight/spectral-ruleset-migrator-v1.9.2) (2023-02-22) ### Bug Fixes * **ruleset-migrator:** use module for require.resolve ([#2405](#2405)) ([d7c0fa4](d7c0fa4))
# [@stoplight/spectral-ruleset-bundler-v1.5.1](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-ruleset-bundler-v1.5.0...@stoplight/spectral-ruleset-bundler-v1.5.1) (2023-02-22) ### Bug Fixes * **ruleset-bundler:** defaults should be last one ([#2403](#2403)) ([8780cfa](8780cfa))
# [@stoplight/spectral-core-v1.17.0](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-core-v1.16.1...@stoplight/spectral-core-v1.17.0) (2023-03-23) ### Features * **core:** support x- extensions in the ruleset ([#2440](#2440)) ([964151e](964151e))
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.11 to 3.9.17. - [Release notes](https://github.com/patriksimek/vm2/releases) - [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md) - [Commits](patriksimek/vm2@3.9.11...3.9.17) --- updated-dependencies: - dependency-name: vm2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Merged
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Does this PR introduce a breaking change?
Additional context
Currently, the
asyncapi-headers-schema-type-objectwill not trigger when theheadersobject is defined explicitly in themessage.traitsarray.For example:
The new path added in this PR will match on that array and perform the assertion on the
typefield of any object in that array that has a top level key ofheaders.