File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
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.1485827954.workers.dev/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
22github.1485827954.workers.dev/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.1485827954.workers.dev/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q =
66github.1485827954.workers.dev/go-openapi/jsonpointer v0.20.2 /go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs =
77github.1485827954.workers.dev/go-openapi/swag v0.22.8 h1:/9RjDSQ0vbFR+NyjGMkFTsA1IA0fmhKSThmfGZjicbw =
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