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: remove v2 Spectral schema rules from v3 rules #1013

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

smoya
Copy link
Member

@smoya smoya commented Jun 12, 2024

Description
The workflow that validates examples in the Spec repo is failing due to the following reason:

examples/adeo-kafka-request-reply-asyncapi.yml
Error: 217:11 error asyncapi2-schema-examples "0" property type must be string components.schemas.RequesterCode.examples[0]
Error: 244:11 error asyncapi2-schema-examples "0" property type must be string components.schemas.BuCode.examples[0]

Besides the example is ok or not, that rule should not apply to any v3 document because it is not a valid v3 rule (target paths inside the rule are exclusive for v2). I believe I missed this one when filtering rules for v3 in the past.

This PR filters such a rule to only v2 documents.

Related issue(s)
https:/asyncapi/spec/actions/runs/9481679937/job/26125504690#step:5:46

Copy link

sonarcloud bot commented Jun 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.1% Duplication on New Code

See analysis details on SonarCloud

@smoya
Copy link
Member Author

smoya commented Jun 12, 2024

/rtm

@asyncapi-bot asyncapi-bot merged commit dc54de7 into asyncapi:master Jun 12, 2024
19 checks passed
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@smoya smoya deleted the fix/removeV2rulesfromV3 branch June 12, 2024 12:50
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.

3 participants