-
Notifications
You must be signed in to change notification settings - Fork 0
release: 0.2.0 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
665e431
40329ac
2f49e45
5fc2402
07389a5
b7fd553
28b2498
d4f3537
2f69100
61bdeb0
78f8725
d9c0c77
5784e71
ad3cbf1
a95a486
62e382b
2586047
1b5c7e9
fc1ebc7
4a9e250
05fc238
b5836aa
4b76c79
4222549
6ea47ba
9e0c109
522092e
e08b27e
7ee8632
878ee7b
7bd511f
1fb3c19
86e522e
014bf27
f752384
317503c
f8df59b
9a73f60
ca5609b
15efdbc
75c6ac1
4b771ee
357c382
c419250
fb3478d
c983439
14f99ef
95294ce
c472cd1
cde57e6
80481cf
5341977
2a72087
e11fbd3
6347635
56f8b6d
d4c66b4
0b95788
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ on: | |
| push: | ||
| tags: | ||
| - "v*" | ||
| workflow_dispatch: {} | ||
| jobs: | ||
| goreleaser: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| ".": "0.1.0" | ||
| ".": "0.2.0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| configured_endpoints: 30 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-7d29d0843a52840291678a3c6d136f496ae1f956853abaa5003c1284ca2c94aa.yml | ||
| openapi_spec_hash: 010597ad0ec6376fbf2f01ec062787ad | ||
| config_hash: bd8505e17db740d82e578d0edaa9bfe0 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-25f6e417d8ade75d7f759ed0a016931fbc51c01bdb990957d06cd8a5b81bd710.yml | ||
| openapi_spec_hash: ddcd074be4feadcc2c35db961e566a32 | ||
| config_hash: 597eba5e5eaec83a5f0db3d946af8db5 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,8 +85,12 @@ var tests = map[string]struct { | |
| } | ||
|
|
||
| func TestEncode(t *testing.T) { | ||
| t.Parallel() | ||
|
|
||
| for name, test := range tests { | ||
| t.Run(name, func(t *testing.T) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding Affected Locations:
🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: In Go < 1.22, 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: With 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
|
||
| t.Parallel() | ||
|
|
||
| buf := bytes.NewBuffer(nil) | ||
| writer := multipart.NewWriter(buf) | ||
| writer.SetBoundary("xxx") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,8 @@ import ( | |
| ) | ||
|
|
||
| func TestEncode(t *testing.T) { | ||
| t.Parallel() | ||
|
|
||
| tests := map[string]struct { | ||
| val any | ||
| settings QuerySettings | ||
|
|
@@ -114,6 +116,8 @@ func TestEncode(t *testing.T) { | |
|
|
||
| for name, test := range tests { | ||
| t.Run(name, func(t *testing.T) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding Affected Locations:
🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding Affected Locations:
🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding Affected Locations:
🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
|
||
| t.Parallel() | ||
|
Comment on lines
118
to
+119
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
118
to
+119
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding 🤖 AI Agent Prompt for Cursor/Windsurf
Comment on lines
118
to
+119
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Adding Affected Locations:
🤖 AI Agent Prompt for Cursor/Windsurf
|
||
|
|
||
| query := map[string]any{"query": test.val} | ||
| values, err := MarshalWithSettings(query, test.settings) | ||
| if err != nil { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,11 @@ const redactedPlaceholder = "<REDACTED>" | |
| // Headers known to contain sensitive information like an API key. Note that this exclude `Authorization`, | ||
| // which is handled specially in `redactRequest` below. | ||
| var sensitiveHeaders = []string{ | ||
| "X-As-User", | ||
| "api-key", | ||
| "x-api-key", | ||
| "cookie", | ||
| "set-cookie", | ||
|
Comment on lines
+27
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
🤖 AI Agent Prompt for Cursor/Windsurf
|
||
| "x-as-user", | ||
| } | ||
|
|
||
| // RequestLogger is a middleware that logs HTTP requests and responses. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RawOutput: cmd.Root().Bool("raw-output")in their ShowJSONOpts. The error-display path in main.go (lines 46–51) constructs ShowJSONOpts without RawOutput, so it always defaults to false. A user pairing--raw-outputwith--transform-errorto extract a plain string from an API error JSON body will get JSON-quoted output instead of the raw string, contradicting the behaviour they see on the success path.