{"record":{"id":"c46f4bc2f8017daa","repo":"oven-sh/bun","slug":"this-type-already-has-required-set","errorCode":null,"errorMessage":"This type already has required set","messagePattern":"This type already has required set","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/codegen/bindgen-lib-internal.ts","lineNumber":554,"sourceCode":"    });\n  }\n\n  get finite() {\n    if (this.kind !== \"f64\") {\n      throw new Error(\"finite can only be used on f64\");\n    }\n    if (this.flags.finite) {\n      throw new Error(\"This type already has finite set\");\n    }\n    return new TypeImpl(this.kind, this.data, {\n      ...this.flags,\n      finite: true,\n    });\n  }\n\n  get required() {\n    if (this.flags.required) {\n      throw new Error(\"This type already has required set\");\n    }\n    if (this.flags.required) {\n      throw new Error(\"Cannot derive required on an optional type\");\n    }\n    return new TypeImpl(this.kind, this.data, {\n      ...this.flags,\n      required: true,\n    });\n  }\n\n  default(def: any) {\n    if (\"default\" in this.flags) {\n      throw new Error(\"This type already has a default value\");\n    }\n    if (this.flags.required) {\n      throw new Error(\"Cannot derive default on a required type\");\n    }\n    this.assertDefaultIsValid(def);","sourceCodeStart":536,"sourceCodeEnd":572,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/codegen/bindgen-lib-internal.ts#L536-L572","documentation":"Error \"This type already has required set\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/codegen/bindgen-lib-internal.ts:554 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":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}