Skip to content

Commit e6d0e58

Browse files
fix: vocab field is required
1 parent 6f64673 commit e6d0e58

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-c028a7584d3508f268ce5c5b824b50af88eaa140620dd03a1b35f409f510603c.yml
3-
openapi_spec_hash: f9b780b2398a87678a13355e48cd515f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-84f0d75048a9268981a84800b4190e3691997ce57dcfc0876f38a5b3fce6bacd.yml
3+
openapi_spec_hash: 35607d4e850c8a60524223ff632c83bb
44
config_hash: aeb6eb949d73382270bbd8bbf2e4cf2a

src/resources/shared.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,6 @@ export namespace ExtensionConfig {
136136
*/
137137
type: 'select_tags';
138138

139-
/**
140-
* Array of possible tag values. Combined length of all strings must not exceed 500
141-
* characters. Cannot contain the `%` character.
142-
*/
143-
vocabulary: Array<string>;
144-
145139
/**
146140
* Maximum number of tags to select from the vocabulary.
147141
*/
@@ -151,6 +145,12 @@ export namespace ExtensionConfig {
151145
* Minimum number of tags to select from the vocabulary.
152146
*/
153147
min_selections?: number;
148+
149+
/**
150+
* Array of possible tag values. Combined length of all strings must not exceed 500
151+
* characters. Cannot contain the `%` character.
152+
*/
153+
vocabulary?: Array<string>;
154154
}
155155

156156
export interface SelectMetadata {
@@ -457,12 +457,6 @@ export namespace Extensions {
457457
*/
458458
type: 'select_tags';
459459

460-
/**
461-
* Array of possible tag values. Combined length of all strings must not exceed 500
462-
* characters. Cannot contain the `%` character.
463-
*/
464-
vocabulary: Array<string>;
465-
466460
/**
467461
* Maximum number of tags to select from the vocabulary.
468462
*/
@@ -472,6 +466,12 @@ export namespace Extensions {
472466
* Minimum number of tags to select from the vocabulary.
473467
*/
474468
min_selections?: number;
469+
470+
/**
471+
* Array of possible tag values. Combined length of all strings must not exceed 500
472+
* characters. Cannot contain the `%` character.
473+
*/
474+
vocabulary?: Array<string>;
475475
}
476476

477477
export interface SelectMetadata {

tests/api-resources/beta/v2/files.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ describe('resource files', () => {
5656
{
5757
instruction: 'What types of clothing items are visible in this image?',
5858
type: 'select_tags',
59-
vocabulary: ['shirt', 'tshirt', 'dress', 'trousers', 'jacket'],
6059
max_selections: 1,
6160
min_selections: 0,
61+
vocabulary: ['shirt', 'tshirt', 'dress', 'trousers', 'jacket'],
6262
},
6363
{
6464
instruction: 'Is this a luxury or high-end fashion item?',

tests/api-resources/files/files.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ describe('resource files', () => {
164164
{
165165
instruction: 'What types of clothing items are visible in this image?',
166166
type: 'select_tags',
167-
vocabulary: ['shirt', 'tshirt', 'dress', 'trousers', 'jacket'],
168167
max_selections: 1,
169168
min_selections: 0,
169+
vocabulary: ['shirt', 'tshirt', 'dress', 'trousers', 'jacket'],
170170
},
171171
{
172172
instruction: 'Is this a luxury or high-end fashion item?',

0 commit comments

Comments
 (0)