diff options
Diffstat (limited to 'packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts')
-rw-r--r-- | packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts b/packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts new file mode 100644 index 000000000..bf6f2d810 --- /dev/null +++ b/packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts @@ -0,0 +1,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[]; + } +); |