1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-04 11:17:02 +02:00
unleash.unleash/src/lib/openapi/spec/__snapshots__/constraint-schema.test.ts.snap
2022-09-06 13:22:41 +02:00

52 lines
1.1 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`constraintSchema invalid operator name 1`] = `
{
"errors": [
{
"instancePath": "/operator",
"keyword": "enum",
"message": "must be equal to one of the allowed values",
"params": {
"allowedValues": [
"NOT_IN",
"IN",
"STR_ENDS_WITH",
"STR_STARTS_WITH",
"STR_CONTAINS",
"NUM_EQ",
"NUM_GT",
"NUM_GTE",
"NUM_LT",
"NUM_LTE",
"DATE_AFTER",
"DATE_BEFORE",
"SEMVER_EQ",
"SEMVER_GT",
"SEMVER_LT",
],
},
"schemaPath": "#/properties/operator/enum",
},
],
"schema": "#/components/schemas/constraintSchema",
}
`;
exports[`constraintSchema invalid value type 1`] = `
{
"errors": [
{
"instancePath": "/value",
"keyword": "type",
"message": "must be string",
"params": {
"type": "string",
},
"schemaPath": "#/properties/value/type",
},
],
"schema": "#/components/schemas/constraintSchema",
}
`;