diff --git a/src/index.js b/src/index.js index aa531ba..4ab80c0 100644 --- a/src/index.js +++ b/src/index.js @@ -81,6 +81,19 @@ const swaggerOptions = { description: 'Название фильма' } } + }, + Error: { + type: 'object', + properties: { + error: { + type: 'string', + description: 'Сообщение об ошибке' + }, + details: { + type: 'string', + description: 'Детали ошибки' + } + } } } }