Skip to content

Commit b6158fd

Browse files
committed
use RecommendUpdatedAt
1 parent 4e07197 commit b6158fd

File tree

4 files changed

+34
-17
lines changed

4 files changed

+34
-17
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: OK
2+
content:
3+
application/json:
4+
schema:
5+
$ref: './common.yml#/recommendUpdatedAtResponse'
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
taskID:
2+
type: integer
3+
format: int64
4+
example: 1514562690001
5+
description: |
6+
Unique identifier of a task.
7+
8+
A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
9+
10+
updatedAt:
11+
type: string
12+
example: 2023-07-04T12:49:15Z
13+
description: Date and time when the object was updated, in RFC 3339 format.
14+
15+
recommendUpdatedAtResponse:
16+
type: object
17+
description: Response, taskID, and update timestamp.
18+
additionalProperties: false
19+
required:
20+
- taskID
21+
- updatedAt
22+
properties:
23+
taskID:
24+
$ref: '#/taskID'
25+
updatedAt:
26+
$ref: '#/updatedAt'

specs/recommend/common/schemas/RecommendRule.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RecommendRule:
99
description: Rule metadata.
1010
properties:
1111
lastUpdate:
12-
$ref: '../../../common/responses/common.yml#/updatedAt'
12+
$ref: '../responses/common.yml#/updatedAt'
1313
objectID:
1414
$ref: '../../../common/parameters.yml#/ruleID'
1515
condition:
@@ -28,7 +28,7 @@ RecommendRule:
2828
type: array
2929
description: Time periods when the rule is active.
3030
items:
31-
$ref: '#/timeRange'
31+
$ref: '../../../common/schemas/Rule.yml#/timeRange'
3232

3333
Condition:
3434
type: object
@@ -123,17 +123,3 @@ AutoFacetFilter:
123123
Whether the filter is negative.
124124
If true, recommendations must not have the same value for the `facet` attribute.
125125
If false, recommendations must have the same value for the `facet` attribute.
126-
127-
timeRange:
128-
type: object
129-
additionalProperties: false
130-
properties:
131-
from:
132-
type: integer
133-
description: When the rule should start to be active, in Unix epoch time.
134-
until:
135-
type: integer
136-
description: When the rule should stop to be active, in Unix epoch time.
137-
required:
138-
- from
139-
- until

specs/recommend/paths/batchRecommendRules.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ post:
3535

3636
responses:
3737
'200':
38-
$ref: '../../common/responses/UpdatedAt.yml'
38+
$ref: '../common/responses/RecommendUpdatedAt.yml'
3939
'400':
4040
$ref: '../../common/responses/BadRequest.yml'

0 commit comments

Comments
 (0)