File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module github.com/gptscript-ai/go-gptscript
2
2
3
3
go 1.22.2
4
4
5
- require github.com/getkin/kin-openapi v0.123 .0
5
+ require github.com/getkin/kin-openapi v0.124 .0
6
6
7
7
require (
8
8
github.com/go-openapi/jsonpointer v0.20.2 // indirect
Original file line number Diff line number Diff line change 1
1
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
2
2
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3
- github.com/getkin/kin-openapi v0.123 .0 h1:zIik0mRwFNLyvtXK274Q6ut+dPh6nlxBp0x7mNrPhs8 =
4
- github.com/getkin/kin-openapi v0.123 .0 /go.mod h1:wb1aSZA/iWmorQP9KTAS/phLj/t17B5jT7+fS8ed9NM =
3
+ github.com/getkin/kin-openapi v0.124 .0 h1:VSFNMB9C9rTKBnQ/fpyDU8ytMTr4dWI9QovSKj9kz/M =
4
+ github.com/getkin/kin-openapi v0.124 .0 /go.mod h1:wb1aSZA/iWmorQP9KTAS/phLj/t17B5jT7+fS8ed9NM =
5
5
github.com/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q =
6
6
github.com/go-openapi/jsonpointer v0.20.2 /go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs =
7
7
github.com/go-openapi/swag v0.22.8 h1:/9RjDSQ0vbFR+NyjGMkFTsA1IA0fmhKSThmfGZjicbw =
Original file line number Diff line number Diff line change @@ -435,12 +435,12 @@ func TestFmt(t *testing.T) {
435
435
Instructions : "#!/bin/bash\n echo hello there" ,
436
436
},
437
437
Arguments : & openapi3.Schema {
438
- Type : "object" ,
438
+ Type : & openapi3. Types { "object" } ,
439
439
Properties : map [string ]* openapi3.SchemaRef {
440
440
"input" : {
441
441
Value : & openapi3.Schema {
442
442
Description : "The string input to echo" ,
443
- Type : "string" ,
443
+ Type : & openapi3. Types { "string" } ,
444
444
},
445
445
},
446
446
},
@@ -495,12 +495,12 @@ func TestFmtWithTextNode(t *testing.T) {
495
495
Name : "echo" ,
496
496
},
497
497
Arguments : & openapi3.Schema {
498
- Type : "object" ,
498
+ Type : & openapi3. Types { "object" } ,
499
499
Properties : map [string ]* openapi3.SchemaRef {
500
500
"input" : {
501
501
Value : & openapi3.Schema {
502
502
Description : "The string input to echo" ,
503
- Type : "string" ,
503
+ Type : & openapi3. Types { "string" } ,
504
504
},
505
505
},
506
506
},
Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ type ToolDef struct {
30
30
31
31
func ObjectSchema (kv ... string ) * openapi3.Schema {
32
32
s := & openapi3.Schema {
33
- Type : "object" ,
33
+ Type : & openapi3. Types { "object" } ,
34
34
Properties : openapi3.Schemas {},
35
35
}
36
36
for i , v := range kv {
37
37
if i % 2 == 1 {
38
38
s .Properties [kv [i - 1 ]] = & openapi3.SchemaRef {
39
39
Value : & openapi3.Schema {
40
40
Description : v ,
41
- Type : "string" ,
41
+ Type : & openapi3. Types { "string" } ,
42
42
},
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments