fix: do not inherit title in allOf

fixes #601
This commit is contained in:
Roman Hotsiy 2018-08-22 12:27:13 +03:00
parent fb212128f9
commit 720e28284c
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -256,7 +256,9 @@ export class OpenAPIParser {
if (subSchemaRef) { if (subSchemaRef) {
receiver.parentRefs!.push(subSchemaRef); receiver.parentRefs!.push(subSchemaRef);
if (receiver.title === undefined && isNamedDefinition(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);
} }
} }
} }