Skip to content

Commit

Permalink
Updated OpenAPI specs
Browse files Browse the repository at this point in the history
  • Loading branch information
CI committed Sep 23, 2024
1 parent 26de8f3 commit 5094d77
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 6 deletions.
30 changes: 29 additions & 1 deletion json/knowledgeapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -87117,6 +87117,26 @@
"$ref": "#/components/schemas/CommonEclDefinitions_Photo"
}
},
"Duration": {
"type": "object",
"description": "Product duration.",
"properties": {
"unit": {
"type": "string",
"enum": [
"MINUTES",
"HOURS",
"DAYS"
],
"description": "Unit of time (i.e. minutes, hours, days)."
},
"value": {
"type": "number",
"minimum": 1,
"description": "Value of time."
}
}
},
"ProductItem": {
"allOf": [
{
Expand All @@ -87137,11 +87157,19 @@
},
"url": {
"type": "string",
"description": "Product home page"
"description": "Product home page."
},
"video": {
"type": "string",
"description": "Youtube URL."
},
"duration": {
"$ref": "#/components/schemas/Duration"
},
"ranking": {
"type": "number",
"minimum": 0,
"description": "Product ranking."
}
}
}
Expand Down
30 changes: 29 additions & 1 deletion json/liveapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -43277,6 +43277,26 @@
"$ref": "#/components/schemas/Photo"
}
},
"Duration": {
"type": "object",
"description": "Product duration.",
"properties": {
"unit": {
"type": "string",
"enum": [
"MINUTES",
"HOURS",
"DAYS"
],
"description": "Unit of time (i.e. minutes, hours, days)."
},
"value": {
"type": "number",
"minimum": 1,
"description": "Value of time."
}
}
},
"ProductItem": {
"allOf": [
{
Expand All @@ -43297,11 +43317,19 @@
},
"url": {
"type": "string",
"description": "Product home page"
"description": "Product home page."
},
"video": {
"type": "string",
"description": "Youtube URL."
},
"duration": {
"$ref": "#/components/schemas/Duration"
},
"ranking": {
"type": "number",
"minimum": 0,
"description": "Product ranking."
}
}
}
Expand Down
30 changes: 29 additions & 1 deletion json/webhooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8944,6 +8944,26 @@
"$ref": "#/components/schemas/CommonEclDefinitions_Photo"
}
},
"Duration": {
"type": "object",
"description": "Product duration.",
"properties": {
"unit": {
"type": "string",
"enum": [
"MINUTES",
"HOURS",
"DAYS"
],
"description": "Unit of time (i.e. minutes, hours, days)."
},
"value": {
"type": "number",
"minimum": 1,
"description": "Value of time."
}
}
},
"ProductItem": {
"allOf": [
{
Expand All @@ -8964,11 +8984,19 @@
},
"url": {
"type": "string",
"description": "Product home page"
"description": "Product home page."
},
"video": {
"type": "string",
"description": "Youtube URL."
},
"duration": {
"$ref": "#/components/schemas/Duration"
},
"ranking": {
"type": "number",
"minimum": 0,
"description": "Product ranking."
}
}
}
Expand Down
23 changes: 22 additions & 1 deletion yaml/knowledgeapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116626,6 +116626,21 @@ components:
description: List of up to 5 photos.
items:
$ref: '#/components/schemas/CommonEclDefinitions_Photo'
Duration:
type: object
description: Product duration.
properties:
unit:
type: string
enum:
- MINUTES
- HOURS
- DAYS
description: Unit of time (i.e. minutes, hours, days).
value:
type: number
minimum: 1
description: Value of time.
ProductItem:
allOf:
- $ref: '#/components/schemas/BaseEclItem'
Expand All @@ -116640,10 +116655,16 @@ components:
description: Displayed item ID.
url:
type: string
description: Product home page
description: Product home page.
video:
type: string
description: Youtube URL.
duration:
$ref: '#/components/schemas/Duration'
ranking:
type: number
minimum: 0
description: Product ranking.
ProductEcl_Section:
allOf:
- $ref: '#/components/schemas/BaseEclSection'
Expand Down
23 changes: 22 additions & 1 deletion yaml/liveapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68375,6 +68375,21 @@ components:
description: List of up to 5 photos.
items:
$ref: '#/components/schemas/Photo'
Duration:
type: object
description: Product duration.
properties:
unit:
type: string
enum:
- MINUTES
- HOURS
- DAYS
description: Unit of time (i.e. minutes, hours, days).
value:
type: number
minimum: 1
description: Value of time.
ProductItem:
allOf:
- $ref: '#/components/schemas/BaseEclItem'
Expand All @@ -68389,10 +68404,16 @@ components:
description: Displayed item ID.
url:
type: string
description: Product home page
description: Product home page.
video:
type: string
description: Youtube URL.
duration:
$ref: '#/components/schemas/Duration'
ranking:
type: number
minimum: 0
description: Product ranking.
ProductEcl_Section:
allOf:
- $ref: '#/components/schemas/BaseEclSection'
Expand Down
23 changes: 22 additions & 1 deletion yaml/webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12529,6 +12529,21 @@ components:
description: List of up to 5 photos.
items:
$ref: '#/components/schemas/CommonEclDefinitions_Photo'
Duration:
type: object
description: Product duration.
properties:
unit:
type: string
enum:
- MINUTES
- HOURS
- DAYS
description: Unit of time (i.e. minutes, hours, days).
value:
type: number
minimum: 1
description: Value of time.
ProductItem:
allOf:
- $ref: '#/components/schemas/BaseEclItem'
Expand All @@ -12543,10 +12558,16 @@ components:
description: Displayed item ID.
url:
type: string
description: Product home page
description: Product home page.
video:
type: string
description: Youtube URL.
duration:
$ref: '#/components/schemas/Duration'
ranking:
type: number
minimum: 0
description: Product ranking.
ProductEcl_Section:
allOf:
- $ref: '#/components/schemas/BaseEclSection'
Expand Down

0 comments on commit 5094d77

Please sign in to comment.