mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-28 17:55:15 +02:00
## What This PR changes our AJV configuration to return all errors it finds with a schema instead of stopping at the first one. Because of this, a number of the snapshot tests that we have must be updated. ## Why DX! As someone using an API: if I send a faulty request, I'd rather have the API tell me about the five things that are wrong than for me to learn about one thing, send a new request, learn about another thing, send a new request, .... etc. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
28 lines
623 B
Plaintext
28 lines
623 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`featureEnvironmentSchema empty 1`] = `
|
|
{
|
|
"errors": [
|
|
{
|
|
"instancePath": "",
|
|
"keyword": "required",
|
|
"message": "must have required property 'name'",
|
|
"params": {
|
|
"missingProperty": "name",
|
|
},
|
|
"schemaPath": "#/required",
|
|
},
|
|
{
|
|
"instancePath": "",
|
|
"keyword": "required",
|
|
"message": "must have required property 'enabled'",
|
|
"params": {
|
|
"missingProperty": "enabled",
|
|
},
|
|
"schemaPath": "#/required",
|
|
},
|
|
],
|
|
"schema": "#/components/schemas/featureEnvironmentSchema",
|
|
}
|
|
`;
|