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

chore: perpare for open enum feature flags #704

Merged
merged 2 commits into from
May 14, 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
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ require (
github.com/speakeasy-api/openapi-generation/v2 v2.331.0
github.com/speakeasy-api/openapi-overlay v0.6.0
github.com/speakeasy-api/sdk-gen-config v1.14.2
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.7.1
github.com/speakeasy-api/speakeasy-core v0.8.4
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.7.3
github.com/speakeasy-api/speakeasy-core v0.8.5
github.com/speakeasy-api/speakeasy-proxy v0.0.2
github.com/speakeasy-sdks/openai-go-sdk/v4 v4.2.1
github.com/spf13/cobra v1.8.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,10 @@ github.com/speakeasy-api/openapi-overlay v0.6.0 h1:LqJWrE2nBE16lgGVkIhN4OceXpMZI
github.com/speakeasy-api/openapi-overlay v0.6.0/go.mod h1:f5FloQrHA7MsxYg9djzMD5h6dxrHjVVByWKh7an8TRc=
github.com/speakeasy-api/sdk-gen-config v1.14.2 h1:GWxqdDHa6VWz8FAjar4yPOa+jCQDYY4oGfQ3jEs+A5M=
github.com/speakeasy-api/sdk-gen-config v1.14.2/go.mod h1:7FsPqdsh//6Z0OcO/jQPD66l6/m1YVvK5tmt0+KRpdo=
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.7.1 h1:8cfPRFXn9a7IMBAQFhQ0N4rKCHMqWclVBGTEmXKXrZ4=
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.7.1/go.mod h1:b4fiZ1Wid0JHwwiYqhaPifDwjmC15uiN7A8Cmid+9kw=
github.com/speakeasy-api/speakeasy-core v0.8.4 h1:+lkKlYXxH30ytF7VdmD3zVzPp6it3bcC708+LikxKtQ=
github.com/speakeasy-api/speakeasy-core v0.8.4/go.mod h1:fiviQ/GrlJ2Fi2V2M64Ogv3hUPKA57JB9o7NrLpFfKE=
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.7.3 h1:Yi15KK+86laDPaDEpGRdPaPMfCUF5U+R2GrpO6Stwpw=
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.7.3/go.mod h1:b4fiZ1Wid0JHwwiYqhaPifDwjmC15uiN7A8Cmid+9kw=
github.com/speakeasy-api/speakeasy-core v0.8.5 h1:eU6kXMQDtaQcnTOW0XOWLqOe9Gxdv/gNNK3oCjoz13U=
github.com/speakeasy-api/speakeasy-core v0.8.5/go.mod h1:kiZJoEY+E5IWQsREfrAI842r3gxMkPIIJ09z3H5aW8w=
github.com/speakeasy-api/speakeasy-go-sdk v1.8.1 h1:atzohw12oQ5ipaLb1q7ntTu4vvAgKDJsrvaUoOu6sw0=
github.com/speakeasy-api/speakeasy-go-sdk v1.8.1/go.mod h1:XbzaM0sMjj8bGooz/uEtNkOh1FQiJK7RFuNG3LPBSAU=
github.com/speakeasy-api/speakeasy-proxy v0.0.2 h1:u4rQ8lXvuYRCSxiLQGb5JxkZRwNIDlyh+pMFYD6OGjA=
Expand Down
3 changes: 1 addition & 2 deletions registry/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"path/filepath"

"github.com/speakeasy-api/sdk-gen-config/workflow"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
core "github.com/speakeasy-api/speakeasy-core/auth"
"github.com/speakeasy-api/speakeasy/internal/download"
"github.com/speakeasy-api/speakeasy/internal/log"
Expand Down Expand Up @@ -43,6 +42,6 @@ func ResolveSpeakeasyRegistryBundle(ctx context.Context, d workflow.Document, ou
}

func IsRegistryEnabled(ctx context.Context) bool {
hasSchemaRegistry, _ := core.HasWorkspaceFeatureFlag(ctx, shared.FeatureFlagsSchemaRegistry)
hasSchemaRegistry, _ := core.HasWorkspaceFeatureFlag(ctx, "schema_registry")
return hasSchemaRegistry
}
Loading