Skip to content

Commit 42b76ce

Browse files
committedJun 13, 2024·
chore: bump kin-openapi
1 parent 914e71e commit 42b76ce

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
 

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/gptscript-ai/go-gptscript
22

33
go 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

77
require (
88
github.com/go-openapi/jsonpointer v0.20.2 // indirect

‎go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
22
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=
55
github.com/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q=
66
github.com/go-openapi/jsonpointer v0.20.2/go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs=
77
github.com/go-openapi/swag v0.22.8 h1:/9RjDSQ0vbFR+NyjGMkFTsA1IA0fmhKSThmfGZjicbw=

‎gptscript_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,12 @@ func TestFmt(t *testing.T) {
435435
Instructions: "#!/bin/bash\necho 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
},

‎tool.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ type ToolDef struct {
3030

3131
func 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
}

0 commit comments

Comments
 (0)
Please sign in to comment.