Skip to content

Commit

Permalink
fix: Resolve incorrectly formatted validation objects and rename keys…
Browse files Browse the repository at this point in the history
… where appropriate (#227)
  • Loading branch information
jmeier204 authored Oct 4, 2024
1 parent 39a2dbd commit 941ec57
Show file tree
Hide file tree
Showing 2 changed files with 467 additions and 284 deletions.
84 changes: 42 additions & 42 deletions cypress/fixtures/fireboltCalls/discoverylaunch.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
"ONNAVIGATETO_WITH_HOME_INTENT": {
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_HOME_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_HOME_INTENT"
},
"LAUNCH_APP_WITH_PLAYBACK_INTENT_WITHOUT_ENTITYTYPE": {
"method": "discovery.launch",
Expand Down Expand Up @@ -494,207 +494,207 @@
"ONNAVIGATETO_WITH_PLAYBACK_INTENT": {
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYBACK_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYBACK_INTENT"
},
"ONNAVIGATETO_WITH_PLAYBACK_INTENT_WITHOUT_ENTITYTYPE": {
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYBACK_INTENT_WITHOUT_ENTITYTYPE_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYBACK_INTENT_WITHOUT_ENTITYTYPE"
},
"ONNAVIGATETO_WITH_ENTITY_INTENT" : {
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_ENTITY_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_ENTITY_INTENT"
},
"ONNAVIGATETO_WITH_ENTITY_INTENT_WITHOUT_ENTITYTYPE":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_ENTITY_INTENT_WITHOUT_ENTITYTYPE_CONTENT"
"content": "DISCOVERYLAUNCH_ENTITY_INTENT_WITHOUT_ENTITYTYPE"
},
"ONNAVIGATETO_WITH_INTENT" :{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_INTENT"
},
"ONNAVIGATETO_WITH_SEARCH_INTENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_SEARCH_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_SEARCH_INTENT"
},
"ONNAVIGATETO_WITH_SECTION_INTENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_SECTION_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_SECTION_INTENT"
},
"ONNAVIGATETO_WITH_TUNE_INTENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_TUNE_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_TUNE_INTENT"
},
"ONNAVIGATETO_WITH_PLAYENTITY_INTENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG" :{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM" :{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_CONCERT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_CONCERT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_CONCERT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_SPORTINGEVENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_SPORTINGEVENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_SPORTINGEVENT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_PREVIEW":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_PREVIEW_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_PREVIEW"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_OTHER":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_OTHER_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_OTHER"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_ADVERTISEMENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_ADVERTISEMENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_ADVERTISEMENT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_MUSICVIDEO":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_MUSICVIDEO_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_MUSICVIDEO"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_MINISODE":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_MINISODE_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_MINISODE"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_EXTRA":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_EXTRA_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_PROGRAMTYPE_EXTRA"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_CONCERT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_CONCERT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_CONCERT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_SPORTINGEVENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_SPORTINGEVENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_SPORTINGEVENT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_PREVIEW":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_PREVIEW_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_PREVIEW"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_OTHER":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_OTHER_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_OTHER"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_ADVERTISEMENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_ADVERTISEMENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_ADVERTISEMENT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_MUSICVIDEO":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_MUSICVIDEO_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_MUSICVIDEO"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_MINISODE":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_MINISODE_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_MINISODE"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_EXTRA":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_EXTRA_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_SONG_PROGRAMTYPE_EXTRA"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_CONCERT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_CONCERT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_CONCERT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_SPORTINGEVENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_SPORTINGEVENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_SPORTINGEVENT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_PREVIEW":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_PREVIEW_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_PREVIEW"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_OTHER":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_OTHER_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_OTHER"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_ADVERTISEMENT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_ADVERTISEMENT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_ADVERTISEMENT"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_MUSICVIDEO":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_MUSICVIDEO_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_MUSICVIDEO"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_MINISODE":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_MINISODE_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_MINISODE"
},
"ONNAVIGATETO_WITH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_EXTRA":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_EXTRA_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYQUERY_INTENT_WITH_MUSICTYPE_ALBUM_PROGRAMTYPE_EXTRA"
},
"ONNAVIGATETO_WITH_PLAYENTITY_INTENT_WITHOUT_OPTIONS":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_WITHOUT_OPTIONS_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_WITHOUT_OPTIONS"
},
"ONNAVIGATETO_WITH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_MOVIE":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_MOVIE_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_MOVIE"
},
"ONNAVIGATETO_WITH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_EPISODE":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_EPISODE_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_EPISODE"
},
"ONNAVIGATETO_WITH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_CONCERT":{
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_CONCERT_CONTENT"
"content": "DISCOVERYLAUNCH_PLAYENTITY_INTENT_WITH_PROGRAMTYPE_CONCERT"
},
"HOME_INTENT_FOR_ONNAVIGATETO": {
"event": "discovery.onNavigateTo",
"validationJsonPath": "eventResponse",
"content": "DISCOVERYLAUNCH_HOME_INTENT_CONTENT"
"content": "DISCOVERYLAUNCH_HOME_INTENT"
},
"NULL_FOR_ONNAVIGATETO": {
"event": "discovery.onNavigateTo",
Expand Down
Loading

0 comments on commit 941ec57

Please sign in to comment.