Skip to content

Commit

Permalink
plurals
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Feb 25, 2020
1 parent 971d1e2 commit 02c568e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions generated/harvest-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4507,7 +4507,7 @@ paths:
200:
description: 'Clients Report'
schema:
$ref: '#/definitions/ExpenseReportsResult'
$ref: '#/definitions/ExpenseReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4553,7 +4553,7 @@ paths:
200:
description: 'Projects Report'
schema:
$ref: '#/definitions/ExpenseReportsResult'
$ref: '#/definitions/ExpenseReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4599,7 +4599,7 @@ paths:
200:
description: 'Expense Categories Report'
schema:
$ref: '#/definitions/ExpenseReportsResult'
$ref: '#/definitions/ExpenseReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4645,7 +4645,7 @@ paths:
200:
description: 'Team Report'
schema:
$ref: '#/definitions/ExpenseReportsResult'
$ref: '#/definitions/ExpenseReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4691,7 +4691,7 @@ paths:
200:
description: 'Uninvoiced Report'
schema:
$ref: '#/definitions/UninvoicedReportResult'
$ref: '#/definitions/UninvoicedReportResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4737,7 +4737,7 @@ paths:
200:
description: 'Clients Report'
schema:
$ref: '#/definitions/TimeReportsResult'
$ref: '#/definitions/TimeReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4783,7 +4783,7 @@ paths:
200:
description: 'Projects Report'
schema:
$ref: '#/definitions/TimeReportsResult'
$ref: '#/definitions/TimeReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4829,7 +4829,7 @@ paths:
200:
description: 'Tasks Report'
schema:
$ref: '#/definitions/TimeReportsResult'
$ref: '#/definitions/TimeReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4875,7 +4875,7 @@ paths:
200:
description: 'Team Report'
schema:
$ref: '#/definitions/TimeReportsResult'
$ref: '#/definitions/TimeReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4909,7 +4909,7 @@ paths:
200:
description: 'Project Budget Report'
schema:
$ref: '#/definitions/ProjectBudgetReportResult'
$ref: '#/definitions/ProjectBudgetReportResults'
default:
description: 'error payload'
schema:
Expand Down
2 changes: 1 addition & 1 deletion src/Extractor/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public static function guessPathResponseSchema($summary, $title)
}

if (preg_match('/^([a-zA-Z ]+) Report/', $summary)) {
return '#/definitions/'.$title.'Result';
return '#/definitions/'.$title.'Results';
}

if ('Retrieve the currently authenticated user' === $summary) {
Expand Down

0 comments on commit 02c568e

Please sign in to comment.