diff --git a/spec3.json b/spec3.json index c2ab087..009637f 100644 --- a/spec3.json +++ b/spec3.json @@ -4167,7 +4167,27 @@ "$ref": "#/components/schemas/Pagination" }, { - "$ref": "#/components/schemas/Sorting" + "type": "object", + "properties": { + "sort": { + "type": "string", + "description": "The field to sort by. Note that sorting is by a column of the view record, not the document itself.", + "default": "updatedAt", + "enum": [ + "updatedAt", + "createdAt" + ] + }, + "direction": { + "type": "string", + "example": "DESC", + "default": "DESC", + "enum": [ + "ASC", + "DESC" + ] + } + } } ] } diff --git a/spec3.yml b/spec3.yml index 5607153..398d5e4 100644 --- a/spec3.yml +++ b/spec3.yml @@ -3013,7 +3013,23 @@ paths: schema: allOf: - "$ref": "#/components/schemas/Pagination" - - "$ref": "#/components/schemas/Sorting" + - type: object + properties: + sort: + type: string + description: The field to sort by. Note that sorting is by a + column of the view record, not the document itself. + default: updatedAt + enum: + - updatedAt + - createdAt + direction: + type: string + example: DESC + default: DESC + enum: + - ASC + - DESC responses: "200": description: OK