Skip to content

Commit bf8b521

Browse files
committed
remove dup
1 parent d341213 commit bf8b521

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

specs/common/schemas/Rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ timeRange:
1313
properties:
1414
from:
1515
type: integer
16+
format: int64
1617
description: When the rule should start to be active, in Unix epoch time.
1718
until:
1819
type: integer
20+
format: int64
1921
description: When the rule should stop to be active, in Unix epoch time.
2022
required:
2123
- from

specs/search/paths/rules/common/schemas.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rule:
3030
type: array
3131
description: Time periods when the rule is active.
3232
items:
33-
$ref: '#/timeRange'
33+
$ref: '../../../../common/schemas/Rule.yml#/timeRange'
3434
required:
3535
- objectID
3636

@@ -289,22 +289,6 @@ automaticFacetFilter:
289289
required:
290290
- facet
291291

292-
timeRange:
293-
type: object
294-
additionalProperties: false
295-
properties:
296-
from:
297-
type: integer
298-
format: int64
299-
description: When the rule should start to be active, in Unix epoch time.
300-
until:
301-
type: integer
302-
format: int64
303-
description: When the rule should stop to be active, in Unix epoch time.
304-
required:
305-
- from
306-
- until
307-
308292
updatedRuleResponse:
309293
type: object
310294
additionalProperties: false

0 commit comments

Comments
 (0)