fix(oas): handle new keys in circular reference patch (#9218)
Handle new keys in the circular references patch leading to undefined not being iterable error.
This commit is contained in:
1 parent
6584e911e0
commit
ba14d4341f
1 file changed
+1
-1
@@ -240,7 +240,7 @@ ${hint}
|
|||||||
const originalContent = await readYaml(redoclyConfigPath) as CircularReferenceConfig
|
const originalContent = await readYaml(redoclyConfigPath) as CircularReferenceConfig
|
||||||
Object.keys(recommendation).forEach((recKey) => {
|
Object.keys(recommendation).forEach((recKey) => {
|
||||||
originalContent.decorators["medusa/circular-patch"].schemas[recKey] = [
|
originalContent.decorators["medusa/circular-patch"].schemas[recKey] = [
|
||||||
...originalContent.decorators["medusa/circular-patch"].schemas[recKey],
|
...(originalContent.decorators["medusa/circular-patch"].schemas[recKey] || []),
|
||||||
...recommendation[recKey]
|
...recommendation[recKey]
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user