File tree 4 files changed +51
-6
lines changed
4 files changed +51
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " typia" ,
3
- "version" : " 7.4.2 " ,
3
+ "version" : " 7.5.0 " ,
4
4
"description" : " Superfast runtime validators with only one line" ,
5
5
"main" : " lib/index.js" ,
6
6
"typings" : " lib/index.d.ts" ,
41
41
},
42
42
"homepage" : " https://typia.io" ,
43
43
"dependencies" : {
44
- "@samchon/openapi" : " ^2.2.1 " ,
44
+ "@samchon/openapi" : " ^2.3.0 " ,
45
45
"commander" : " ^10.0.0" ,
46
46
"comment-json" : " ^4.2.3" ,
47
47
"inquirer" : " ^8.2.5" ,
50
50
},
51
51
"peerDependencies" : {
52
52
"typescript" : " >=4.8.0 <5.8.0" ,
53
- "@samchon/openapi" : " >=2.2.1 <3.0.0"
53
+ "@samchon/openapi" : " >=2.3.0 <3.0.0"
54
54
},
55
55
"devDependencies" : {
56
56
"@rollup/plugin-commonjs" : " ^26.0.1" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " typescript-json" ,
3
- "version" : " 7.4.2 -dev.20241217 " ,
3
+ "version" : " 7.5.0 -dev.20241218 " ,
4
4
"description" : " Superfast runtime validators with only one line" ,
5
5
"main" : " lib/index.js" ,
6
6
"typings" : " lib/index.d.ts" ,
37
37
},
38
38
"homepage" : " https://typia.io" ,
39
39
"dependencies" : {
40
- "typia" : " 7.4.2 -dev.20241217 "
40
+ "typia" : " 7.5.0 -dev.20241218 "
41
41
},
42
42
"peerDependencies" : {
43
43
"typescript" : " >=4.8.0 <5.8.0" ,
44
- "@samchon/openapi" : " >=2.2.1 <3.0.0"
44
+ "@samchon/openapi" : " >=2.3.0-dev.20241218 <3.0.0"
45
45
},
46
46
"stackblitz" : {
47
47
"startCommand" : " npm install && npm run test"
Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ export namespace LlmApplicationProgrammer {
95
95
output . push (
96
96
`${ prefix } 's return type must not be union type with undefined.` ,
97
97
) ;
98
+ if ( / ^ [ 0 - 9 ] / . test ( name [ 0 ] ?? "" ) === true )
99
+ output . push ( `name must not start with a number` ) ;
100
+ if ( / ^ [ a - z A - Z 0 - 9 _ - ] + $ / . test ( name ) === false )
101
+ output . push ( `name must be alphanumeric with underscore` ) ;
98
102
if ( func . parameters . length !== 1 )
99
103
output . push ( `${ prefix } must have a single parameter.` ) ;
100
104
if ( func . parameters . length !== 0 ) {
Original file line number Diff line number Diff line change
1
+ import typia from "typia" ;
2
+
3
+ // APPLICATION FUNCTION
4
+ typia . llm . application <
5
+ {
6
+ "0create" ( p : { } ) : void ;
7
+ } ,
8
+ "chatgpt"
9
+ > ( ) ;
10
+ typia . llm . application <
11
+ {
12
+ "a.b.c" ( p : { } ) : void ;
13
+ } ,
14
+ "chatgpt"
15
+ > ( ) ;
16
+ typia . llm . application <
17
+ {
18
+ "&x" ( p : { } ) : void ;
19
+ } ,
20
+ "chatgpt"
21
+ > ( ) ;
22
+
23
+ // APPLICATION-OF-VALIDATE
24
+ typia . llm . applicationOfValidate <
25
+ {
26
+ "0create" ( p : { } ) : void ;
27
+ } ,
28
+ "chatgpt"
29
+ > ( ) ;
30
+ typia . llm . applicationOfValidate <
31
+ {
32
+ "a.b.c" ( p : { } ) : void ;
33
+ } ,
34
+ "chatgpt"
35
+ > ( ) ;
36
+ typia . llm . applicationOfValidate <
37
+ {
38
+ "&x" ( p : { } ) : void ;
39
+ } ,
40
+ "chatgpt"
41
+ > ( ) ;
You can’t perform that action at this time.
0 commit comments