Skip to content

Commit

Permalink
fix: Schema cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacivita committed Oct 27, 2023
1 parent c6db9e0 commit e29a59e
Showing 1 changed file with 33 additions and 63 deletions.
96 changes: 33 additions & 63 deletions src/schemas/intents.json
Original file line number Diff line number Diff line change
Expand Up @@ -655,36 +655,29 @@
},
"PlaylistEntity": {
"title": "PlaylistEntity",
"allOf": [
{
"$ref": "#/definitions/ProgramEntity"
"description": "A Firebolt compliant representation of a Playlist entity.",
"title": "PlaylistEntity",
"type": "object",
"required": [
"entityType",
"entityId"
],
"properties": {
"entityType": {
"const": "playlist"
},
{
"description": "A Firebolt compliant representation of a Movie entity.",
"title": "MovieEntity",
"type": "object",
"required": [
"entityType",
"entityId"
],
"properties": {
"entityType": {
"const": "playlist"
},
"entityId": {
"$ref": "#/definitions/Identifier"
},
"assetId": {
"$ref": "#/definitions/Identifier"
},
"appContentData": {
"type": "string",
"maxLength": 256
}
},
"additionalProperties": false
"entityId": {
"$ref": "#/definitions/Identifier"
},
"assetId": {
"$ref": "#/definitions/Identifier"
},
"appContentData": {
"type": "string",
"maxLength": 256
}
],
},
"additionalProperties": false,
"examples": [
{
"entityType": "playlist",
Expand Down Expand Up @@ -1058,7 +1051,12 @@
}
},
"then": {
"maxProperties": 1
"type": "object",
"properties": {
"options": {
"maxProperties": 1
}
}
}
}
}
Expand Down Expand Up @@ -1130,9 +1128,14 @@
"items": {
"$ref": "https://meta.comcast.com/firebolt/entertainment#/definitions/ProgramType"
}
},
"musicTypes": {
"type": "array",
"items": {
"$ref": "https://meta.comcast.com/firebolt/entertainment#/definitions/MusicType"
}
}
},
"maxProperties": 1,
"additionalProperties": false
}
},
Expand All @@ -1144,39 +1147,6 @@
"query",
"options"
]
},
"if": {
"properties": {
"entity": {
"type": "object",
"required": [
"entityType"
],
"properties": {
"entityType": {
"const": "playlist"
}
}
}
}
},
"then": {
"properties": {
"options": {
"type": "object",
"properties": {
"playFirstId": {
"type": "string"
},
"playFirstTrack": {
"type": "integer",
"minimum": 1
}
},
"maxProperties": 1,
"additionalProperties": false
}
}
}
}
}
Expand Down

0 comments on commit e29a59e

Please sign in to comment.