Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
check example title (#100)
Browse files Browse the repository at this point in the history
* check example title

* indent

Co-authored-by: Changlong Liu <[email protected]>
  • Loading branch information
changlong-liu and Changlong Liu authored Oct 23, 2020
1 parent 4cb6f46 commit ce58424
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,10 @@ export class Helper {
return false;
}
const props = Object.getOwnPropertyNames(o);
if (props.find((prop) => prop === 'parameters') && props.find((prop) => prop === 'responses') && props.length==2) {
return true;
if (props.find((prop) => prop === 'parameters') && props.find((prop) => prop === 'responses')) {
if (props.length==2 ||
props.length==3 && props.find((prop) => prop === 'title'))
return true;
}
return false;
}
Expand Down

0 comments on commit ce58424

Please sign in to comment.