We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1de5b2c commit 347e306Copy full SHA for 347e306
src/middlewares/parsers/schema.preprocessor.ts
@@ -243,6 +243,17 @@ export class SchemaPreprocessor<
243
node.object,
244
);
245
246
+ if (seenObjects.has(resolvedObject)) {
247
+ if (hasNodeType(node, 'schema')) {
248
+ this.processDiscriminator(
249
+ hasNodeType(parent, 'schema') ? parent : undefined,
250
+ node,
251
+ );
252
+ }
253
+
254
+ return;
255
256
257
// Resolve reference object in parent, then process again with resolved schema
258
// As every object (aka schema) is 'pass-by-reference', this will update the actual apiDoc.
259
if (node.pathFromParent && node.pathFromParent.length > 0) {
0 commit comments