{"record":{"id":"6f5cd592b34e8c9f","repo":"serverless/serverless","slug":"error-path-error-message","errorCode":null,"errorMessage":"${error.path}: ${error.message}","messagePattern":"\\$\\{error\\.path\\}: \\$\\{error\\.message\\}","errorType":"validation","errorClass":"AppSyncValidationError","httpStatus":null,"severity":"error","filePath":"packages/serverless/lib/plugins/aws/appsync/validation.js","lineNumber":885,"sourceCode":"    },\n  },\n  required: ['name', 'authentication'],\n  additionalProperties: {\n    not: true,\n    errorMessage: 'invalid (unknown) property',\n  },\n}\n\nconst ajv = new Ajv({ allErrors: true, allowUnionTypes: true })\najvErrors(ajv)\naddFormats(ajv)\n\nconst validator = ajv.compile(appSyncSchema)\n\nexport const validateConfig = (data) => {\n  const isValid = validator(data)\n  if (isValid === false && validator.errors) {\n    throw new AppSyncValidationError(\n      validator.errors\n        .filter((error) => !['if', 'oneOf', 'anyOf'].includes(error.keyword))\n        .map((error) => {\n          return {\n            path: error.instancePath,\n            message: error.message || 'unknown error',\n          }\n        }),\n    )\n  }\n\n  return isValid\n}\n\nexport class AppSyncValidationError extends Error {\n  constructor(validationErrors) {\n    super(\n      validationErrors","sourceCodeStart":867,"sourceCodeEnd":903,"githubUrl":"https://github.com/serverless/serverless/blob/b9d7ea51c8cce57cff1207964b9b71123673081f/packages/serverless/lib/plugins/aws/appsync/validation.js#L867-L903","documentation":"Error \"${error.path}: ${error.message}\" thrown in serverless/serverless.","triggerScenarios":"Thrown at packages/serverless/lib/plugins/aws/appsync/validation.js:885 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the AppSync configuration value at the reported path according to the validation message."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b9d7ea51c8cce57cff1207964b9b71123673081f","analyzedAt":"2026-08-13T04:14:40.386Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}