{"record":{"id":"dcfcf3762def98f1","repo":"ueberdosis/tiptap","slug":"the-validate-option-is-deprecated-rename-to-the","errorCode":null,"errorMessage":"The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.","messagePattern":"The `validate` option is deprecated\\. Rename to the `shouldAutoLink` option instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/extension-link/src/link.ts","lineNumber":233,"sourceCode":"/**\n * This extension allows you to create links.\n * @see https://www.tiptap.dev/api/marks/link\n */\nexport const Link = Mark.create<LinkOptions>({\n  name: 'link',\n\n  priority: 1000,\n\n  keepOnSplit: false,\n\n  exitable: true,\n\n  onCreate() {\n    // TODO: v4 - remove validate option\n    if (this.options.validate && !this.options.shouldAutoLink) {\n      // Copy the validate function to the shouldAutoLink option\n      this.options.shouldAutoLink = this.options.validate\n      console.warn(\n        'The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.',\n      )\n    }\n    this.options.protocols.forEach(protocol => {\n      if (typeof protocol === 'string') {\n        registerCustomProtocol(protocol)\n        return\n      }\n      registerCustomProtocol(protocol.scheme, protocol.optionalSlashes)\n    })\n  },\n\n  onDestroy() {\n    reset()\n  },\n\n  inclusive() {\n    return this.options.autolink","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/extension-link/src/link.ts#L215-L251","documentation":"Error \"The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/extension-link/src/link.ts:233 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}