fix: apply configurable rules for arazzo (#1721)

This commit is contained in:
Dmytro Anansky
2024-09-09 11:17:33 +03:00
committed by GitHub
parent d555aea697
commit ef8fdd3ee5
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
"@redocly/openapi-core": patch
"@redocly/cli": patch
---
Fixed an issue where custom rules were not applied to Arazzo descriptions.

View File

@@ -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 = {