aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts
blob: bf6f2d81096bae288e339d3b42ab00f19ffac96c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export type Protocol = {
  $schema: string;
  title: string;
  description: string;
  type: "object";
  definitions: Record<string, Type>;
};

export type Type = {
  description?: string;
} & (
  | {
      type: "number" | "integer" | "boolean";
    }
  | {
      type: "string";
      enum?: string[];
      enumDescriptions?: string[];
    }
  | {
      type: "object";
      properties?: Record<string, Type>;
      required?: string[];
    }
  | {
      type: "array";
      items?: Type;
    }
  | {
      type?: undefined;
      $ref: string;
    }
  | {
      type?: undefined;
      allOf: Type[];
    }
);