From 1a9e608f390715d6de1897d049ff9a731c832e63 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 17 Mar 2022 23:42:21 -0400 Subject: [PATCH] openapi: Fixed bad offset and sortby parameters --- .../parameters/unspecified/offset.yaml | 27 +++++++++-------- .../parameters/unspecified/sortby.yaml | 29 +++++++++---------- 2 files changed, 27 insertions(+), 29 deletions(-) diff --git a/standard/openapi/parameters/unspecified/offset.yaml b/standard/openapi/parameters/unspecified/offset.yaml index c9640cf..a87e3c9 100644 --- a/standard/openapi/parameters/unspecified/offset.yaml +++ b/standard/openapi/parameters/unspecified/offset.yaml @@ -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 diff --git a/standard/openapi/parameters/unspecified/sortby.yaml b/standard/openapi/parameters/unspecified/sortby.yaml index 634cfdb..0987a0b 100644 --- a/standard/openapi/parameters/unspecified/sortby.yaml +++ b/standard/openapi/parameters/unspecified/sortby.yaml @@ -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