Skip to content
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

fix(api): duplicated ordering properties in ai-gateway #3022

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1332
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3121d1e2a80e6a7aa4779339e60d437fadf22bb9c9f24c42a3af63bfc4a00567.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8f9611e6f8e2e8f49bdddb85c73bc371d1ee7c371d49f0fcac3dda2dc7e9d5c2.yml
4 changes: 1 addition & 3 deletions ai_gateway/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,11 @@ type LogListParamsDirection string
const (
LogListParamsDirectionAsc LogListParamsDirection = "asc"
LogListParamsDirectionDesc LogListParamsDirection = "desc"
LogListParamsDirectionAsc LogListParamsDirection = "ASC"
LogListParamsDirectionDesc LogListParamsDirection = "DESC"
)

func (r LogListParamsDirection) IsKnown() bool {
switch r {
case LogListParamsDirectionAsc, LogListParamsDirectionDesc, LogListParamsDirectionAsc, LogListParamsDirectionDesc:
case LogListParamsDirectionAsc, LogListParamsDirectionDesc:
return true
}
return false
Expand Down