Skip to content

Commit 176720c

Browse files
jeremyfieltatomyr
authored andcommitted
feat: add rawConfig for Arazzo preprocessors and decorators
1 parent f0f903b commit 176720c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.changeset/cool-mails-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@redocly/openapi-core": patch
3+
---
4+
5+
Arazzo decorators and preprocessors now merge both root and Arazzo-specific config, ensuring all relevant settings are applied.

packages/core/src/config/config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ export class Config {
117117
...resolvedConfig.preprocessors,
118118
...resolvedConfig.async3Preprocessors,
119119
},
120-
arazzo1: { ...resolvedConfig.arazzo1Preprocessors },
120+
arazzo1: {
121+
...resolvedConfig.preprocessors,
122+
...resolvedConfig.arazzo1Preprocessors,
123+
},
121124
overlay1: {
122125
...resolvedConfig.preprocessors,
123126
...resolvedConfig.overlay1Preprocessors,
@@ -131,7 +134,7 @@ export class Config {
131134
oas3_2: { ...resolvedConfig.decorators, ...resolvedConfig.oas3_2Decorators },
132135
async2: { ...resolvedConfig.decorators, ...resolvedConfig.async2Decorators },
133136
async3: { ...resolvedConfig.decorators, ...resolvedConfig.async3Decorators },
134-
arazzo1: { ...resolvedConfig.arazzo1Decorators },
137+
arazzo1: { ...resolvedConfig.decorators, ...resolvedConfig.arazzo1Decorators },
135138
overlay1: {
136139
...resolvedConfig.decorators,
137140
...resolvedConfig.overlay1Decorators,

0 commit comments

Comments
 (0)