From 63e911acb618360214ea5e5426b094aae05a98a9 Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Mon, 19 Jul 2021 16:09:41 +0500 Subject: [PATCH] Fix 'true' validation in repp mark message as read endpoint --- app/controllers/repp/v1/registrar/notifications_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repp/v1/registrar/notifications_controller.rb b/app/controllers/repp/v1/registrar/notifications_controller.rb index 1185a1a73..815ee85b9 100644 --- a/app/controllers/repp/v1/registrar/notifications_controller.rb +++ b/app/controllers/repp/v1/registrar/notifications_controller.rb @@ -48,7 +48,7 @@ module Repp api :PUT, '/repp/v1/registrar/notifications' desc 'Mark poll message as read' param :notification, Hash, required: true do - param :read, [true], required: true, desc: 'Set as true to mark as read' + param :read, [true, 'true'], required: true, desc: 'Set as true to mark as read' end def update # rubocop:disable Style/AndOr