Skip to content

Commit

Permalink
fix: do not inherit title in allOf
Browse files Browse the repository at this point in the history
fixes #601
  • Loading branch information
RomanHotsiy committed Aug 22, 2018
1 parent fb21212 commit 720e282
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/OpenAPIParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 720e282

Please sign in to comment.