From c4d5995efbc2a9418b096bd240b6554152be1b26 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Jul 2026 14:32:43 +0000 Subject: [PATCH] fix(asm): drop null example literals crashing Spectral lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The scan.failed webhook example (merged in #21) included `label: null` and `completed_at: null` under the OAS 3.1 array-form nullable schema introduced earlier — Spectral (spectral-cli 6.16.0, as pinned) throws "Cannot read properties of null (reading 'enum')" on that combination. Both fields are optional/nullable, so omitting them is equally valid. --- asm/openapi.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/asm/openapi.yaml b/asm/openapi.yaml index f10df7a..b82fd3e 100644 --- a/asm/openapi.yaml +++ b/asm/openapi.yaml @@ -807,13 +807,11 @@ webhooks: timestamp: '2025-06-20T14:10:00Z' data: id: scn_a1b2c3d4e5f60002 - label: null status: failed scan_type: discovery_only targets: ['203.0.113.0/24'] created_at: '2025-06-20T14:05:00Z' started_at: '2025-06-20T14:06:00Z' - completed_at: null error_message: 'Network unreachable for target range' responses: '200':