Skip to content

Commit fc939eb

Browse files
committed
feat: add elicitation support to jsonUtils
1 parent a058229 commit fc939eb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

client/src/utils/jsonUtils.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,20 @@ export type JsonSchemaType = {
1616
| "array"
1717
| "object"
1818
| "null";
19+
title?: string;
1920
description?: string;
20-
required?: boolean;
21+
required?: boolean | string[];
2122
default?: JsonValue;
2223
properties?: Record<string, JsonSchemaType>;
2324
items?: JsonSchemaType;
25+
minimum?: number;
26+
maximum?: number;
27+
minLength?: number;
28+
maxLength?: number;
29+
pattern?: string;
30+
format?: string;
31+
enum?: string[];
32+
enumNames?: string[];
2433
};
2534

2635
export type JsonObject = { [key: string]: JsonValue };

0 commit comments

Comments
 (0)