Skip to content

Commit a3d70bf

Browse files
authored
Bump up @samchon/openapi due to gemini schema constraint reason (#1688)
* Bump up `@samchon/openapi` due to gemini schema constraint reason * change gemini schemas * build schemas * the last styling
1 parent 93b0772 commit a3d70bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1339
-1167
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typia",
3-
"version": "10.0.1",
3+
"version": "10.0.2",
44
"description": "Superfast runtime validators with only one line",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -41,7 +41,7 @@
4141
},
4242
"homepage": "https://typia.io",
4343
"dependencies": {
44-
"@samchon/openapi": "^5.0.0",
44+
"@samchon/openapi": "^5.0.1",
4545
"@standard-schema/spec": "^1.0.0",
4646
"commander": "^10.0.0",
4747
"comment-json": "^4.2.3",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/schemas/llm.application/gemini/CommentTagArray.json

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,42 @@
3737
"type": "object",
3838
"properties": {
3939
"items": {
40-
"description": "@minItems 3\n@maxItems 3",
4140
"type": "array",
4241
"items": {
4342
"type": "string"
44-
}
43+
},
44+
"minItems": 3,
45+
"maxItems": 3
4546
},
4647
"minItems": {
47-
"description": "@minItems 3",
4848
"type": "array",
4949
"items": {
5050
"type": "number"
51-
}
51+
},
52+
"minItems": 3
5253
},
5354
"both": {
54-
"description": "@minItems 3\n@maxItems 7",
5555
"type": "array",
5656
"items": {
5757
"type": "string"
58-
}
58+
},
59+
"minItems": 3,
60+
"maxItems": 7
5961
},
6062
"equal": {
61-
"description": "@minItems 10\n@maxItems 10",
6263
"type": "array",
6364
"items": {
6465
"type": "number"
65-
}
66+
},
67+
"minItems": 10,
68+
"maxItems": 10
6669
},
6770
"unique": {
68-
"description": "@uniqueItems",
6971
"type": "array",
7072
"items": {
7173
"type": "string"
72-
}
74+
},
75+
"uniqueItems": true
7376
}
7477
},
7578
"required": [
@@ -126,39 +129,42 @@
126129
"type": "object",
127130
"properties": {
128131
"items": {
129-
"description": "@minItems 3\n@maxItems 3",
130132
"type": "array",
131133
"items": {
132134
"type": "string"
133-
}
135+
},
136+
"minItems": 3,
137+
"maxItems": 3
134138
},
135139
"minItems": {
136-
"description": "@minItems 3",
137140
"type": "array",
138141
"items": {
139142
"type": "number"
140-
}
143+
},
144+
"minItems": 3
141145
},
142146
"both": {
143-
"description": "@minItems 3\n@maxItems 7",
144147
"type": "array",
145148
"items": {
146149
"type": "string"
147-
}
150+
},
151+
"minItems": 3,
152+
"maxItems": 7
148153
},
149154
"equal": {
150-
"description": "@minItems 10\n@maxItems 10",
151155
"type": "array",
152156
"items": {
153157
"type": "number"
154-
}
158+
},
159+
"minItems": 10,
160+
"maxItems": 10
155161
},
156162
"unique": {
157-
"description": "@uniqueItems",
158163
"type": "array",
159164
"items": {
160165
"type": "string"
161-
}
166+
},
167+
"uniqueItems": true
162168
}
163169
},
164170
"required": [
@@ -235,39 +241,42 @@
235241
"type": "object",
236242
"properties": {
237243
"items": {
238-
"description": "@minItems 3\n@maxItems 3",
239244
"type": "array",
240245
"items": {
241246
"type": "string"
242-
}
247+
},
248+
"minItems": 3,
249+
"maxItems": 3
243250
},
244251
"minItems": {
245-
"description": "@minItems 3",
246252
"type": "array",
247253
"items": {
248254
"type": "number"
249-
}
255+
},
256+
"minItems": 3
250257
},
251258
"both": {
252-
"description": "@minItems 3\n@maxItems 7",
253259
"type": "array",
254260
"items": {
255261
"type": "string"
256-
}
262+
},
263+
"minItems": 3,
264+
"maxItems": 7
257265
},
258266
"equal": {
259-
"description": "@minItems 10\n@maxItems 10",
260267
"type": "array",
261268
"items": {
262269
"type": "number"
263-
}
270+
},
271+
"minItems": 10,
272+
"maxItems": 10
264273
},
265274
"unique": {
266-
"description": "@uniqueItems",
267275
"type": "array",
268276
"items": {
269277
"type": "string"
270-
}
278+
},
279+
"uniqueItems": true
271280
}
272281
},
273282
"required": [

test/schemas/llm.application/gemini/CommentTagArrayUnion.json

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@
2929
"type": "object",
3030
"properties": {
3131
"items": {
32-
"description": "@minItems 3\n@maxItems 3",
3332
"type": "array",
3433
"items": {
3534
"type": "string"
36-
}
35+
},
36+
"minItems": 3,
37+
"maxItems": 3
3738
},
3839
"minItems": {
39-
"description": "@minItems 3",
4040
"type": "array",
4141
"items": {
4242
"type": "number"
43-
}
43+
},
44+
"minItems": 3
4445
},
4546
"maxItems": {
46-
"description": "@maxItems 7",
4747
"type": "array",
4848
"items": {
4949
"anyOf": [
@@ -54,14 +54,16 @@
5454
"type": "number"
5555
}
5656
]
57-
}
57+
},
58+
"maxItems": 7
5859
},
5960
"both": {
60-
"description": "@minItems 3\n@maxItems 7",
6161
"type": "array",
6262
"items": {
6363
"type": "string"
64-
}
64+
},
65+
"minItems": 3,
66+
"maxItems": 7
6567
}
6668
},
6769
"required": [
@@ -109,21 +111,21 @@
109111
"type": "object",
110112
"properties": {
111113
"items": {
112-
"description": "@minItems 3\n@maxItems 3",
113114
"type": "array",
114115
"items": {
115116
"type": "string"
116-
}
117+
},
118+
"minItems": 3,
119+
"maxItems": 3
117120
},
118121
"minItems": {
119-
"description": "@minItems 3",
120122
"type": "array",
121123
"items": {
122124
"type": "number"
123-
}
125+
},
126+
"minItems": 3
124127
},
125128
"maxItems": {
126-
"description": "@maxItems 7",
127129
"type": "array",
128130
"items": {
129131
"anyOf": [
@@ -134,14 +136,16 @@
134136
"type": "number"
135137
}
136138
]
137-
}
139+
},
140+
"maxItems": 7
138141
},
139142
"both": {
140-
"description": "@minItems 3\n@maxItems 7",
141143
"type": "array",
142144
"items": {
143145
"type": "string"
144-
}
146+
},
147+
"minItems": 3,
148+
"maxItems": 7
145149
}
146150
},
147151
"required": [
@@ -209,21 +213,21 @@
209213
"type": "object",
210214
"properties": {
211215
"items": {
212-
"description": "@minItems 3\n@maxItems 3",
213216
"type": "array",
214217
"items": {
215218
"type": "string"
216-
}
219+
},
220+
"minItems": 3,
221+
"maxItems": 3
217222
},
218223
"minItems": {
219-
"description": "@minItems 3",
220224
"type": "array",
221225
"items": {
222226
"type": "number"
223-
}
227+
},
228+
"minItems": 3
224229
},
225230
"maxItems": {
226-
"description": "@maxItems 7",
227231
"type": "array",
228232
"items": {
229233
"anyOf": [
@@ -234,14 +238,16 @@
234238
"type": "number"
235239
}
236240
]
237-
}
241+
},
242+
"maxItems": 7
238243
},
239244
"both": {
240-
"description": "@minItems 3\n@maxItems 7",
241245
"type": "array",
242246
"items": {
243247
"type": "string"
244-
}
248+
},
249+
"minItems": 3,
250+
"maxItems": 7
245251
}
246252
},
247253
"required": [

test/schemas/llm.application/gemini/CommentTagAtomicUnion.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@
4040
"anyOf": [
4141
{
4242
"type": "string",
43-
"description": "@minLength 3\n@maxLength 7"
43+
"minLength": 3,
44+
"maxLength": 7
4445
},
4546
{
4647
"type": "number",
47-
"description": "@minimum 3"
48+
"minimum": 3
4849
}
4950
]
5051
}
@@ -102,11 +103,12 @@
102103
"anyOf": [
103104
{
104105
"type": "string",
105-
"description": "@minLength 3\n@maxLength 7"
106+
"minLength": 3,
107+
"maxLength": 7
106108
},
107109
{
108110
"type": "number",
109-
"description": "@minimum 3"
111+
"minimum": 3
110112
}
111113
]
112114
}
@@ -184,11 +186,12 @@
184186
"anyOf": [
185187
{
186188
"type": "string",
187-
"description": "@minLength 3\n@maxLength 7"
189+
"minLength": 3,
190+
"maxLength": 7
188191
},
189192
{
190193
"type": "number",
191-
"description": "@minimum 3"
194+
"minimum": 3
192195
}
193196
]
194197
}

0 commit comments

Comments
 (0)