From 720e28284c6ee9878a9f8c36a29af6a3ae7a48ef Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 22 Aug 2018 12:27:13 +0300 Subject: [PATCH] fix: do not inherit title in allOf fixes #601 --- src/services/OpenAPIParser.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/OpenAPIParser.ts b/src/services/OpenAPIParser.ts index b4f67335d0..f841dd2451 100644 --- a/src/services/OpenAPIParser.ts +++ b/src/services/OpenAPIParser.ts @@ -256,7 +256,9 @@ export class OpenAPIParser { if (subSchemaRef) { receiver.parentRefs!.push(subSchemaRef); if (receiver.title === undefined && isNamedDefinition(subSchemaRef)) { - receiver.title = JsonPointer.baseName(subSchemaRef); + // this is not so correct behaviour. comented out for now + // ref: https://github.com/Rebilly/ReDoc/issues/601 + // receiver.title = JsonPointer.baseName(subSchemaRef); } } }