Skip to content

Commit

Permalink
Add schema definition for preview response
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Feb 14, 2023
1 parent d57086b commit 19bb8fa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions routes/api/episodes/preview/get-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,34 @@ export async function getPreview (fastify, opts) {
url: { type: 'string', format: 'uri' }
},
required: ['url']
},
response: {
200: {
type: 'object',
properties: {
title: {
type: 'string'
},
ext: {
type: 'string'
},
url: {
type: 'string'
},
duration: {
type: 'number'
},
channel: {
type: 'string'
},
src_type: {
type: 'string'
},
filesize_approx: {
type: 'number'
}
}
}
}
}
},
Expand Down

0 comments on commit 19bb8fa

Please sign in to comment.