Skip to content

Commit

Permalink
Include required in pagination result (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshotN authored Dec 26, 2023
1 parent 0bfe44b commit 589ba49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/v3/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ class OpenApiV3Generator extends AbstractApiGenerator {
this.specs.components.schemas[pagination] = {
title: `${modelName} pagination result`,
type: 'object',
required: true,
properties: {
total: { type: 'integer' },
limit: { type: 'integer' },
Expand Down

0 comments on commit 589ba49

Please sign in to comment.