From e69abaff58c1b2704292829eaf806351358626e3 Mon Sep 17 00:00:00 2001 From: Alexander Sadovsky Date: Mon, 30 Jul 2018 16:44:58 +0200 Subject: [PATCH] update swagger config --- config/swagger.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config/swagger.js b/config/swagger.js index ceb742d..5ac3a6a 100644 --- a/config/swagger.js +++ b/config/swagger.js @@ -9,7 +9,15 @@ module.exports.swagger = { }, definitions: { job: { - required: ['name'] + required: ['submitter'] + }, + task: { + required: ['type'] + }, + webhook: { + required: ['eventType', 'url'] } - } + }, + // todo -> make this work + ignoredRoutes: ['/swagger/doc'] }; \ No newline at end of file