1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-17 01:17:29 +02:00

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
This commit is contained in:
Gastón Fournier 2025-04-23 09:58:39 +02:00 committed by GitHub
parent dbe2f9b6bd
commit 0a752fbf47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,7 @@ process.nextTick(async () => {
addEditStrategy: true,
flagsOverviewSearch: true,
cleanupReminder: true,
strictSchemaValidation: true,
},
},
authentication: {