From 1b8cc6a73ac08ab20125978401fc38b8ef148e63 Mon Sep 17 00:00:00 2001 From: Mike Smith <10135646+mikesmithgh@users.noreply.github.com> Date: Fri, 6 Oct 2023 21:26:50 -0400 Subject: [PATCH 1/2] fix: make period a required field for uptime alert --- specification/resources/uptime/create_alert.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/resources/uptime/create_alert.yml b/specification/resources/uptime/create_alert.yml index c3a87190..eda03022 100644 --- a/specification/resources/uptime/create_alert.yml +++ b/specification/resources/uptime/create_alert.yml @@ -34,6 +34,7 @@ requestBody: - name - type - notifications + - period responses: '201': From 8dc21c4f956f81f72b5e810bff1ca58561b5fb17 Mon Sep 17 00:00:00 2001 From: Mike Smith <10135646+mikesmithgh@users.noreply.github.com> Date: Sat, 7 Oct 2023 20:16:46 -0400 Subject: [PATCH 2/2] fix: set required fields for update uptime alert --- specification/resources/uptime/update_alert.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/resources/uptime/update_alert.yml b/specification/resources/uptime/update_alert.yml index 08ad8391..1dc7c7ab 100644 --- a/specification/resources/uptime/update_alert.yml +++ b/specification/resources/uptime/update_alert.yml @@ -22,6 +22,12 @@ requestBody: allOf: - $ref: 'models/alert.yml#/alert_updatable' + required: + - name + - type + - notifications + - period + responses: '200': $ref: 'responses/existing_alert.yml'