feat: add elicitation support to jsonUtils
This commit is contained in:
parent
a058229fb6
commit
fc939ebeb0
1 changed files with 10 additions and 1 deletions
|
|
@ -16,11 +16,20 @@ export type JsonSchemaType = {
|
||||||
| "array"
|
| "array"
|
||||||
| "object"
|
| "object"
|
||||||
| "null";
|
| "null";
|
||||||
|
title?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
required?: boolean;
|
required?: boolean | string[];
|
||||||
default?: JsonValue;
|
default?: JsonValue;
|
||||||
properties?: Record<string, JsonSchemaType>;
|
properties?: Record<string, JsonSchemaType>;
|
||||||
items?: JsonSchemaType;
|
items?: JsonSchemaType;
|
||||||
|
minimum?: number;
|
||||||
|
maximum?: number;
|
||||||
|
minLength?: number;
|
||||||
|
maxLength?: number;
|
||||||
|
pattern?: string;
|
||||||
|
format?: string;
|
||||||
|
enum?: string[];
|
||||||
|
enumNames?: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type JsonObject = { [key: string]: JsonValue };
|
export type JsonObject = { [key: string]: JsonValue };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue