Define server error messages to display in FE from the server (#12973)
Currently, when a server query or mutation from the front-end fails, the error message defined server-side is displayed in a snackbar in the front-end. These error messages usually contain technical details that don't belong to the user interface, such as "ObjectMetadataCollection not found" or "invalid ENUM value for ...". **BE** In addition to the original error message that is still needed (for the request response, debugging, sentry monitoring etc.), we add a `displayedErrorMessage` that will be used in the snackbars. It's only relevant to add it for the messages that will reach the FE (ie. not in jobs or in rest api for instance) and if it can help the user sort out / fix things (ie. we do add displayedErrorMessage for "Cannot create multiple draft versions for the same workflow" or "Cannot delete [field], please update the label identifier field first", but not "Object metadata does not exist"), even if in practice in the FE users should not be able to perform an action that will not work (ie should not be able to save creation of multiple draft versions of the same workflows). **FE** To ease the usage we replaced enqueueSnackBar with enqueueErrorSnackBar and enqueueSuccessSnackBar with an api that only requires to pass on the error. If no displayedErrorMessage is specified then the default error message is `An error occured.`
This commit is contained in:
@ -5,8 +5,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -16,8 +18,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -27,8 +31,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Label must not contain a comma",
|
||||
},
|
||||
"message": "Label must not contain a comma",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -38,8 +44,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option id",
|
||||
},
|
||||
"message": "Duplicated option id",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -49,8 +57,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option position",
|
||||
},
|
||||
"message": "Duplicated option position",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -60,8 +70,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option value",
|
||||
},
|
||||
"message": "Duplicated option value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -71,8 +83,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option value",
|
||||
},
|
||||
"message": "Duplicated option value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -82,8 +96,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "If defined default value must contain at least one value",
|
||||
},
|
||||
"message": "If defined default value must contain at least one value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -93,8 +109,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Options are required for enum fields",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -104,8 +122,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -115,8 +135,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -126,8 +148,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option label "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -137,8 +161,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option value "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -148,8 +174,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -159,8 +187,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -170,8 +200,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Value must be in UPPER_CASE and follow snake_case "Option 1 and some other things, /"",
|
||||
},
|
||||
"message": "Value must be in UPPER_CASE and follow snake_case "Option 1 and some other things, /"",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -181,8 +213,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -192,8 +226,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -203,8 +239,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -215,6 +253,7 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
"extensions": {
|
||||
"code": "INTERNAL_SERVER_ERROR",
|
||||
"exceptionEventId": "mocked-exception-id",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "label.includes is not a function",
|
||||
},
|
||||
@ -226,8 +265,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Value must be in UPPER_CASE and follow snake_case "22222"",
|
||||
},
|
||||
"message": "Value must be in UPPER_CASE and follow snake_case "22222"",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -237,8 +278,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is required",
|
||||
},
|
||||
"message": "Option id is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -248,8 +291,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label is required",
|
||||
},
|
||||
"message": "Option label is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -259,8 +304,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Options are required for enum fields",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -270,8 +317,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value is required",
|
||||
},
|
||||
"message": "Option value is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -281,8 +330,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -292,8 +343,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -303,8 +356,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option label "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -314,8 +369,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option value "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -325,8 +382,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -336,8 +395,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -347,8 +408,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label exceeds 63 characters",
|
||||
},
|
||||
"message": "Option label "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" exceeds 63 characters",
|
||||
"message": "Option label exceeds 63 characters",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -358,8 +421,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value exceeds 63 characters",
|
||||
},
|
||||
"message": "Option value "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" exceeds 63 characters",
|
||||
"message": "Option value exceeds 63 characters",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -369,8 +434,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label is required",
|
||||
},
|
||||
"message": "Option label is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -380,8 +447,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value is required",
|
||||
},
|
||||
"message": "Option value is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -391,8 +460,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Options are required for enum fields",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -402,8 +473,10 @@ exports[`Create field metadata MULTI_SELECT tests suite Create should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value "'UNKNOWN_OPTION'" must be one of the option values",
|
||||
},
|
||||
"message": "Default value "'UNKNOWN_OPTION'" must be one of the option values",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -413,8 +486,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with an inv
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -424,8 +499,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with an unk
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value "'OPTION_424242'" must be one of the option values",
|
||||
},
|
||||
"message": "Default value "'OPTION_424242'" must be one of the option values",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -435,8 +512,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with comma
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Label must not contain a comma",
|
||||
},
|
||||
"message": "Label must not contain a comma",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -446,8 +525,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with duplic
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option id",
|
||||
},
|
||||
"message": "Duplicated option id",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -457,8 +538,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with duplic
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option position",
|
||||
},
|
||||
"message": "Duplicated option position",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -468,8 +551,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with duplic
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option value",
|
||||
},
|
||||
"message": "Duplicated option value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -479,8 +564,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with duplic
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option value",
|
||||
},
|
||||
"message": "Duplicated option value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -490,8 +577,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Options are required for enum fields",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -501,8 +590,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -512,8 +603,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -523,8 +616,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option label "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -534,8 +629,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option value "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -545,8 +642,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with invali
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -556,8 +655,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with invali
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Value must be in UPPER_CASE and follow snake_case "Option 1 and some other things, /"",
|
||||
},
|
||||
"message": "Value must be in UPPER_CASE and follow snake_case "Option 1 and some other things, /"",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -567,8 +668,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with not a
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be a stringified array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -578,8 +681,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with not a
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -590,6 +695,7 @@ exports[`Create field metadata SELECT tests suite Create should fail with not a
|
||||
"extensions": {
|
||||
"code": "INTERNAL_SERVER_ERROR",
|
||||
"exceptionEventId": "mocked-exception-id",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "label.includes is not a function",
|
||||
},
|
||||
@ -601,8 +707,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with not a
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Value must be in UPPER_CASE and follow snake_case "22222"",
|
||||
},
|
||||
"message": "Value must be in UPPER_CASE and follow snake_case "22222"",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -612,8 +720,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with null i
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is required",
|
||||
},
|
||||
"message": "Option id is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -623,8 +733,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with null l
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label is required",
|
||||
},
|
||||
"message": "Option label is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -634,8 +746,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with null o
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Options are required for enum fields",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -645,8 +759,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with null v
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value is required",
|
||||
},
|
||||
"message": "Option value is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -656,8 +772,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with only w
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -667,8 +785,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with only w
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -678,8 +798,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with only w
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option label "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -689,8 +811,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with only w
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option value "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -700,8 +824,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with too lo
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -711,8 +837,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with too lo
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -722,8 +850,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with too lo
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label exceeds 63 characters",
|
||||
},
|
||||
"message": "Option label "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" exceeds 63 characters",
|
||||
"message": "Option label exceeds 63 characters",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -733,8 +863,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with too lo
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value exceeds 63 characters",
|
||||
},
|
||||
"message": "Option value "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" exceeds 63 characters",
|
||||
"message": "Option value exceeds 63 characters",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -744,8 +876,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with undefi
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label is required",
|
||||
},
|
||||
"message": "Option label is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -755,8 +889,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with undefi
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value is required",
|
||||
},
|
||||
"message": "Option value is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -766,8 +902,10 @@ exports[`Create field metadata SELECT tests suite Create should fail with undefi
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Options are required for enum fields",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
`;
|
||||
@ -5,8 +5,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -16,8 +18,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -27,8 +31,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Label must not contain a comma",
|
||||
},
|
||||
"message": "Label must not contain a comma",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -38,8 +44,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option id",
|
||||
},
|
||||
"message": "Duplicated option id",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -49,8 +57,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option position",
|
||||
},
|
||||
"message": "Duplicated option position",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -60,8 +70,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option value",
|
||||
},
|
||||
"message": "Duplicated option value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -71,8 +83,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option value",
|
||||
},
|
||||
"message": "Duplicated option value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -82,8 +96,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "If defined default value must contain at least one value",
|
||||
},
|
||||
"message": "If defined default value must contain at least one value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -93,8 +109,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Options are required for enum fields",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -104,8 +122,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -115,8 +135,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -126,8 +148,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option label "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -137,8 +161,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option value "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -148,8 +174,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -159,8 +187,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -170,8 +200,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Value must be in UPPER_CASE and follow snake_case "Option 1 and some other things, /"",
|
||||
},
|
||||
"message": "Value must be in UPPER_CASE and follow snake_case "Option 1 and some other things, /"",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -181,8 +213,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -192,8 +226,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -203,8 +239,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -215,6 +253,7 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
"extensions": {
|
||||
"code": "INTERNAL_SERVER_ERROR",
|
||||
"exceptionEventId": "mocked-exception-id",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "label.includes is not a function",
|
||||
},
|
||||
@ -226,8 +265,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Value must be in UPPER_CASE and follow snake_case "22222"",
|
||||
},
|
||||
"message": "Value must be in UPPER_CASE and follow snake_case "22222"",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -237,8 +278,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is required",
|
||||
},
|
||||
"message": "Option id is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -248,8 +291,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label is required",
|
||||
},
|
||||
"message": "Option label is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -259,8 +304,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value is required",
|
||||
},
|
||||
"message": "Option value is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -270,8 +317,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -281,8 +330,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -292,8 +343,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option label "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -303,8 +356,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option value "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -314,8 +369,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be an array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -325,8 +382,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -336,8 +395,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label exceeds 63 characters",
|
||||
},
|
||||
"message": "Option label "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" exceeds 63 characters",
|
||||
"message": "Option label exceeds 63 characters",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -347,8 +408,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value exceeds 63 characters",
|
||||
},
|
||||
"message": "Option value "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" exceeds 63 characters",
|
||||
"message": "Option value exceeds 63 characters",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -358,8 +421,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label is required",
|
||||
},
|
||||
"message": "Option label is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -369,8 +434,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value is required",
|
||||
},
|
||||
"message": "Option value is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -380,8 +447,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value "'OPTION_42'" must be one of the option values",
|
||||
},
|
||||
"message": "Default value "'OPTION_42'" must be one of the option values",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -391,8 +460,10 @@ exports[`Update field metadata MULTI_SELECT tests suite Update should fail with
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value "'UNKNOWN_OPTION'" must be one of the option values",
|
||||
},
|
||||
"message": "Default value "'UNKNOWN_OPTION'" must be one of the option values",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -402,8 +473,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with an inv
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -413,8 +486,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with an unk
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value "'OPTION_424242'" must be one of the option values",
|
||||
},
|
||||
"message": "Default value "'OPTION_424242'" must be one of the option values",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -424,8 +499,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with comma
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Label must not contain a comma",
|
||||
},
|
||||
"message": "Label must not contain a comma",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -435,8 +512,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with duplic
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option id",
|
||||
},
|
||||
"message": "Duplicated option id",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -446,8 +525,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with duplic
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option position",
|
||||
},
|
||||
"message": "Duplicated option position",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -457,8 +538,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with duplic
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option value",
|
||||
},
|
||||
"message": "Duplicated option value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -468,8 +551,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with duplic
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Duplicated option value",
|
||||
},
|
||||
"message": "Duplicated option value",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -479,8 +564,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Options are required for enum fields",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -490,8 +577,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -501,8 +590,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -512,8 +603,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option label "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -523,8 +616,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with empty
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option value "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -534,8 +629,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with invali
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -545,8 +642,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with invali
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Value must be in UPPER_CASE and follow snake_case "Option 1 and some other things, /"",
|
||||
},
|
||||
"message": "Value must be in UPPER_CASE and follow snake_case "Option 1 and some other things, /"",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -556,8 +655,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with not a
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "Default value for multi-select must be a stringified array",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -567,8 +668,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with not a
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -579,6 +682,7 @@ exports[`Update field metadata SELECT tests suite Update should fail with not a
|
||||
"extensions": {
|
||||
"code": "INTERNAL_SERVER_ERROR",
|
||||
"exceptionEventId": "mocked-exception-id",
|
||||
"userFriendlyMessage": "An error occurred.",
|
||||
},
|
||||
"message": "label.includes is not a function",
|
||||
},
|
||||
@ -590,8 +694,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with not a
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Value must be in UPPER_CASE and follow snake_case "22222"",
|
||||
},
|
||||
"message": "Value must be in UPPER_CASE and follow snake_case "22222"",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -601,8 +707,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with null i
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is required",
|
||||
},
|
||||
"message": "Option id is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -612,8 +720,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with null l
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label is required",
|
||||
},
|
||||
"message": "Option label is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -623,8 +733,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with null v
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value is required",
|
||||
},
|
||||
"message": "Option value is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -634,8 +746,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with only w
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -645,8 +759,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with only w
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -656,8 +772,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with only w
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option label "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -667,8 +785,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with only w
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value "" is beneath 1 character",
|
||||
},
|
||||
"message": "Option value "" is beneath 1 character",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -678,8 +798,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with too lo
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value should be as quoted string",
|
||||
},
|
||||
"message": "Default value should be as quoted string",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -689,8 +811,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with too lo
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option id is invalid",
|
||||
},
|
||||
"message": "Option id is invalid",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -700,8 +824,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with too lo
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label exceeds 63 characters",
|
||||
},
|
||||
"message": "Option label "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" exceeds 63 characters",
|
||||
"message": "Option label exceeds 63 characters",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -711,8 +837,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with too lo
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value exceeds 63 characters",
|
||||
},
|
||||
"message": "Option value "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" exceeds 63 characters",
|
||||
"message": "Option value exceeds 63 characters",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -722,8 +850,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with undefi
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option label is required",
|
||||
},
|
||||
"message": "Option label is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -733,8 +863,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with undefi
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Option value is required",
|
||||
},
|
||||
"message": "Option value is required",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
@ -744,8 +876,10 @@ exports[`Update field metadata SELECT tests suite Update should fail with unknow
|
||||
{
|
||||
"extensions": {
|
||||
"code": "BAD_USER_INPUT",
|
||||
"userFriendlyMessage": "Default value "'OPTION_42'" must be one of the option values",
|
||||
},
|
||||
"message": "Default value "'OPTION_42'" must be one of the option values",
|
||||
"name": "UserInputError",
|
||||
},
|
||||
]
|
||||
`;
|
||||
`;
|
||||
Reference in New Issue
Block a user