From 6d65d421bd71889ff198a34c07f8f184220695e1 Mon Sep 17 00:00:00 2001 From: Immanuel Pelzer Date: Thu, 5 Mar 2026 12:51:27 +0100 Subject: [PATCH 1/2] fix: api spec update --- .gitignore | 1 + update-api-spec.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3546253a..58f4257e 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ Thumbs.db test-results/ playwright-report/ playwright/.cache/ +.checkly_openapi_tmp.json diff --git a/update-api-spec.sh b/update-api-spec.sh index e9b9c122..9de66d8e 100755 --- a/update-api-spec.sh +++ b/update-api-spec.sh @@ -6,7 +6,7 @@ set -e LIVE_API_URL="https://api.checklyhq.com/openapi.json" API_SPEC_PATH="./api-reference/openapi.json" -TEMP_FILE="/tmp/checkly_openapi.json" +TEMP_FILE="./.checkly_openapi_tmp.json" echo "📥 Fetching live API specification from $LIVE_API_URL..." curl -s "$LIVE_API_URL" > "$TEMP_FILE" From ad973197662cc2c3c28fb28921c59a538bf90896 Mon Sep 17 00:00:00 2001 From: Immanuel Pelzer Date: Fri, 6 Mar 2026 13:51:52 +0100 Subject: [PATCH 2/2] fix: schema issues with IcmpMonitorCreate --- update-api-spec.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update-api-spec.sh b/update-api-spec.sh index 9de66d8e..8bc568e7 100755 --- a/update-api-spec.sh +++ b/update-api-spec.sh @@ -16,6 +16,11 @@ if [ ! -s "$TEMP_FILE" ]; then exit 1 fi +echo "🔧 Fixing invalid OpenAPI schema fields..." +# Fix maxPacketLossThreshold.minimum which contains a Joi.ref() object instead of a number +jq '.components.schemas.IcmpMonitorCreate.properties.maxPacketLossThreshold.minimum = 0 + | .components.schemas.IcmpMonitorUpdate.properties.maxPacketLossThreshold.minimum = 0' "$TEMP_FILE" > "${TEMP_FILE}.fixed" && mv "${TEMP_FILE}.fixed" "$TEMP_FILE" + echo "🔧 Cleaning up HTML in descriptions..." # Convert common HTML tags to Markdown # Order matters: convert first so patterns work on remaining content