Skip to content

Commit

Permalink
Added BeforeAndAfterParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaliszuk committed Nov 30, 2023
1 parent 1505ce8 commit 3e2fb48
Showing 1 changed file with 20 additions and 30 deletions.
50 changes: 20 additions & 30 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,21 +281,7 @@
"in": "query",
"required": false,
"schema": {
"type": "object",
"properties": {
"before": {
"type": "string",
"example": "2021-12-22T10:13:06.487Z",
"description": "Timestamp representing the date and time before the voucher was created in ISO 8601 format.",
"format": "date-time"
},
"after": {
"type": "string",
"example": "2021-12-22T10:13:06.487Z",
"description": "Timestamp representing the date and time after the voucher was created in ISO 8601 format.",
"format": "date-time"
}
}
"$ref": "#/components/schemas/BeforeAndAfterParameters"
},
"description": "A filter on the list based on the object `created_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[created_at][before]=2017-09-08T13:52:18.227Z`",
"style": "deepObject",
Expand All @@ -305,21 +291,7 @@
"name": "updated_at",
"in": "query",
"schema": {
"type": "object",
"properties": {
"before": {
"type": "string",
"example": "2021-12-22T10:13:06.487Z",
"description": "Timestamp representing the date and time before the voucher was updated in ISO 8601 format.",
"format": "date-time"
},
"after": {
"type": "string",
"example": "2021-12-22T10:13:06.487Z",
"description": "Timestamp representing the date and time after the voucher was updated in ISO 8601 format.",
"format": "date-time"
}
}
"$ref": "#/components/schemas/BeforeAndAfterParameters"
},
"description": "A filter on the list based on the object `updated_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[updated_at][before]=2017-09-08T13:52:18.227Z`",
"style": "deepObject",
Expand Down Expand Up @@ -411,6 +383,24 @@
}
},
"schemas": {
"BeforeAndAfterParameters": {
"title": "Before And After Parameters",
"type": "object",
"properties": {
"before": {
"type": "string",
"example": "2021-12-22T10:13:06.487Z",
"description": "Timestamp representing the date and time before the voucher was updated in ISO 8601 format.",
"format": "date-time"
},
"after": {
"type": "string",
"example": "2021-12-22T10:13:06.487Z",
"description": "Timestamp representing the date and time after the voucher was updated in ISO 8601 format.",
"format": "date-time"
}
}
},
"VouchersValidateRequestBody": {
"title": "Validate Voucher Request Body",
"description": "Request schema model for validating a voucher using **POST** `/vouchers/{code}/validate`.",
Expand Down

0 comments on commit 3e2fb48

Please sign in to comment.