Skip to content

Commit

Permalink
openapi: Fixed bad offset and sortby parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jerstlouis committed Mar 18, 2022
1 parent 909db29 commit 1a9e608
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
27 changes: 13 additions & 14 deletions standard/openapi/parameters/unspecified/offset.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
offset:
description: >-
The optional offset parameter indicates the offset within the result
set from which the server shall begin presenting results in the response
document. The first element has an offset of 0 (default).
explode: false
in: query
name: offset
required: false
schema:
default: 0
minimum: 0
type: integer
style: form
description: >-
The optional offset parameter indicates the offset within the result
set from which the server shall begin presenting results in the response
document. The first element has an offset of 0 (default).
explode: false
in: query
name: offset
required: false
schema:
default: 0
minimum: 0
type: integer
style: form
29 changes: 14 additions & 15 deletions standard/openapi/parameters/unspecified/sortby.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
sortby:
description: >-
The optional sortby parameter indicates the sort property and order on
which the server shall present results in the response document using
the convention `sortby=PROPERTY:X`, where `PROPERTY` is the sort
property and `X` is the sort order (`A` is ascending, `D` is
descending). Sorting by multiple properties is supported by providing a
comma-separated list.
explode: false
in: query
name: sortby
required: false
schema:
type: string
style: form
description: >-
The optional sortby parameter indicates the sort property and order on
which the server shall present results in the response document using
the convention `sortby=PROPERTY:X`, where `PROPERTY` is the sort
property and `X` is the sort order (`A` is ascending, `D` is
descending). Sorting by multiple properties is supported by providing a
comma-separated list.
explode: false
in: query
name: sortby
required: false
schema:
type: string
style: form

0 comments on commit 1a9e608

Please sign in to comment.