Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Set proper schema for returned object in featured playlists endpoint - Fixes #132 #133

Merged
merged 1 commit into from
Nov 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Set proper schema for returned object in featured playlists endpoint
  • Loading branch information
JMPerez committed Nov 7, 2015
commit f637dbef4346948db3462e06e276f101266e5e7b
3 changes: 2 additions & 1 deletion specifications/raml/api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ traits:
200:
body:
application/json:
schema: playlist-simple-page
schema: featured-playlists
/browse/categories:
displayName: browse-categories
type: collection
Expand Down Expand Up @@ -927,6 +927,7 @@ schemas:
- artist-simple: !include schemas/artist-simple.json
- category: !include schemas/category.json
- category-page: !include schemas/category-page.json
- featured-playlists: !include schemas/featured-playlists.json
- image: !include schemas/image.json
- playlist: !include schemas/playlist.json
- playlist-simple: !include schemas/playlist-simple.json
Expand Down
13 changes: 13 additions & 0 deletions specifications/raml/schemas/featured-playlists.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "A sentence describing the context for the featured playlists."
},
"playlists": {
"$ref": "playlist-simple-page"
}
}
}