File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 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
22
33go 1.22.2
44
5- require github.com/getkin/kin-openapi v0.123 .0
5+ require github.com/getkin/kin-openapi v0.124 .0
66
77require (
88 github.com/go-openapi/jsonpointer v0.20.2 // indirect
Original file line number Diff line number Diff line change 11github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
22github.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 =
55github.com/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q =
66github.com/go-openapi/jsonpointer v0.20.2 /go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs =
77github.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) {
435435 Instructions : "#!/bin/bash\n echo hello there" ,
436436 },
437437 Arguments : & openapi3.Schema {
438- Type : "object" ,
438+ Type : & openapi3. Types { "object" } ,
439439 Properties : map [string ]* openapi3.SchemaRef {
440440 "input" : {
441441 Value : & openapi3.Schema {
442442 Description : "The string input to echo" ,
443- Type : "string" ,
443+ Type : & openapi3. Types { "string" } ,
444444 },
445445 },
446446 },
@@ -495,12 +495,12 @@ func TestFmtWithTextNode(t *testing.T) {
495495 Name : "echo" ,
496496 },
497497 Arguments : & openapi3.Schema {
498- Type : "object" ,
498+ Type : & openapi3. Types { "object" } ,
499499 Properties : map [string ]* openapi3.SchemaRef {
500500 "input" : {
501501 Value : & openapi3.Schema {
502502 Description : "The string input to echo" ,
503- Type : "string" ,
503+ Type : & openapi3. Types { "string" } ,
504504 },
505505 },
506506 },
Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ type ToolDef struct {
3030
3131func ObjectSchema (kv ... string ) * openapi3.Schema {
3232 s := & openapi3.Schema {
33- Type : "object" ,
33+ Type : & openapi3. Types { "object" } ,
3434 Properties : openapi3.Schemas {},
3535 }
3636 for i , v := range kv {
3737 if i % 2 == 1 {
3838 s .Properties [kv [i - 1 ]] = & openapi3.SchemaRef {
3939 Value : & openapi3.Schema {
4040 Description : v ,
41- Type : "string" ,
41+ Type : & openapi3. Types { "string" } ,
4242 },
4343 }
4444 }
You can’t perform that action at this time.
0 commit comments