From 0a752fbf471d80f7d2b180b11231c8c3511a05a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Wed, 23 Apr 2025 09:58:39 +0200 Subject: [PATCH] feat: local dev should honor our schemas (#9799) Spotted this in local dev mode: ``` [2025-04-17T15:10:21.036] [DEBUG] openapi-service.ts - Invalid response: { "schema": "#/components/schemas/environmentsProjectSchema", "errors": [ { "instancePath": "/environments/0", "schemaPath": "#/additionalProperties", "keyword": "additionalProperties", "params": { "additionalProperty": "requiredApprovals" }, "message": "must NOT have additional properties" } ] } ``` Enabling strictSchemaValidation in dev mode should help prevent these issues from going out to prod as developers would identify them while testing locally --- src/server-dev.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server-dev.ts b/src/server-dev.ts index 6f044d4bb3..6f8ef9e23d 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -62,6 +62,7 @@ process.nextTick(async () => { addEditStrategy: true, flagsOverviewSearch: true, cleanupReminder: true, + strictSchemaValidation: true, }, }, authentication: {