mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-04 11:17:02 +02:00
This was recently flagged as a security warning by our pipeline. AJV also tells users not to use this in prouduction, which we must have missed: https://ajv.js.org/security.html#security-risks-of-trusted-schemas
70 lines
1.6 KiB
Plaintext
70 lines
1.6 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`setStrategySortOrderSchema missing id 1`] = `
|
|
{
|
|
"errors": [
|
|
{
|
|
"instancePath": "/0",
|
|
"keyword": "required",
|
|
"message": "must have required property 'id'",
|
|
"params": {
|
|
"missingProperty": "id",
|
|
},
|
|
"schemaPath": "#/items/required",
|
|
},
|
|
],
|
|
"schema": "#/components/schemas/setStrategySortOrderSchema",
|
|
}
|
|
`;
|
|
|
|
exports[`setStrategySortOrderSchema missing sortOrder 1`] = `
|
|
{
|
|
"errors": [
|
|
{
|
|
"instancePath": "/0",
|
|
"keyword": "required",
|
|
"message": "must have required property 'sortOrder'",
|
|
"params": {
|
|
"missingProperty": "sortOrder",
|
|
},
|
|
"schemaPath": "#/items/required",
|
|
},
|
|
],
|
|
"schema": "#/components/schemas/setStrategySortOrderSchema",
|
|
}
|
|
`;
|
|
|
|
exports[`setStrategySortOrderSchema no additional parameters 1`] = `
|
|
{
|
|
"errors": [
|
|
{
|
|
"instancePath": "/1",
|
|
"keyword": "additionalProperties",
|
|
"message": "must NOT have additional properties",
|
|
"params": {
|
|
"additionalProperty": "extra",
|
|
},
|
|
"schemaPath": "#/items/additionalProperties",
|
|
},
|
|
],
|
|
"schema": "#/components/schemas/setStrategySortOrderSchema",
|
|
}
|
|
`;
|
|
|
|
exports[`setStrategySortOrderSchema wrong sortOrder type 1`] = `
|
|
{
|
|
"errors": [
|
|
{
|
|
"instancePath": "/0/sortOrder",
|
|
"keyword": "type",
|
|
"message": "must be number",
|
|
"params": {
|
|
"type": "number",
|
|
},
|
|
"schemaPath": "#/items/properties/sortOrder/type",
|
|
},
|
|
],
|
|
"schema": "#/components/schemas/setStrategySortOrderSchema",
|
|
}
|
|
`;
|