Skip to content

lspeasy / core/src / DiagnosticSchema

Variable: DiagnosticSchema

ts
const DiagnosticSchema: ZodObject<{
  code: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
  codeDescription: ZodOptional<ZodObject<{
     href: ZodString;
  }, $strip>>;
  data: ZodOptional<ZodLazy<ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>>>;
  message: ZodString;
  range: ZodObject<{
     end: ZodObject<{
        character: ZodNumber;
        line: ZodNumber;
     }, $strip>;
     start: ZodObject<{
        character: ZodNumber;
        line: ZodNumber;
     }, $strip>;
  }, $strip>;
  relatedInformation: ZodOptional<ZodArray<ZodObject<{
     location: ZodObject<{
        range: ZodObject<{
           end: ZodObject<..., ...>;
           start: ZodObject<..., ...>;
        }, $strip>;
        uri: ZodString;
     }, $strip>;
     message: ZodString;
  }, $strip>>>;
  severity: ZodOptional<ZodUnion<readonly [ZodLiteral<1>, ZodLiteral<2>, ZodLiteral<3>, ZodLiteral<4>]>>;
  source: ZodOptional<ZodString>;
  tags: ZodOptional<ZodArray<ZodUnion<readonly [ZodLiteral<1>, ZodLiteral<2>]>>>;
}, $strip>;

Defined in: packages/core/src/protocol/schemas.ts:821

Released under the MIT License.