Skip to content

Commit

Permalink
fix: apply configurable rules for arazzo (#1721)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryAnansky authored Sep 9, 2024
1 parent d555aea commit ef8fdd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/tough-shirts-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@redocly/openapi-core": patch
"@redocly/cli": patch
---

Fixed an issue where custom rules were not applied to Arazzo descriptions.
5 changes: 4 additions & 1 deletion packages/core/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ export class StyleguideConfig {
[SpecVersion.OAS3_1]: { ...rawConfig.rules, ...rawConfig.oas3_1Rules },
[SpecVersion.Async2]: { ...rawConfig.rules, ...rawConfig.async2Rules },
[SpecVersion.Async3]: { ...rawConfig.rules, ...rawConfig.async3Rules },
[SpecVersion.Arazzo]: { ...rawConfig.arazzoRules },
[SpecVersion.Arazzo]: {
...rawConfig.arazzoRules,
...(rawConfig.rules?.assertions ? { assertions: rawConfig.rules.assertions } : {}),
},
};

this.preprocessors = {
Expand Down

1 comment on commit ef8fdd3

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 78.34% 4901/6256
🟡 Branches 67.04% 2028/3025
🟡 Functions 72.62% 809/1114
🟡 Lines 78.64% 4623/5879

Test suite run success

794 tests passing in 118 suites.

Report generated by 🧪jest coverage report action from ef8fdd3

Please sign in to comment.