Skip to content

Commit 9e4e8d3

Browse files
authored
feat(input_schema): add missing ResourceArrayFieldDefinition properties to ts types (#487)
Add missing properties that are defined in schema.json to ts types
1 parent b481b08 commit 9e4e8d3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/input_schema/src/types.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,18 @@ export type ArrayFieldDefinition = CommonFieldDefinition<Array<unknown>> & {
6363

6464
export type CommonResourceFieldDefinition<T> = CommonFieldDefinition<T> & {
6565
editor?: 'resourcePicker' | 'hidden';
66-
resourceType: 'dataset' | 'keyValueStore' | 'requestQueue'
66+
resourceType: 'dataset' | 'keyValueStore' | 'requestQueue';
6767
}
6868

6969
export type ResourceFieldDefinition = CommonResourceFieldDefinition<string> & {
70-
type: 'string'
70+
type: 'string';
7171
}
7272

7373
export type ResourceArrayFieldDefinition = CommonResourceFieldDefinition<string[]> & {
74-
type: 'array'
74+
type: 'array';
75+
maxItems?: number;
76+
minItems?: number;
77+
uniqueItems?: boolean;
7578
}
7679

7780
type AllTypes = StringFieldDefinition['type']

0 commit comments

Comments
 (0)