From 9465ab4076fe31b30c18072608cf5beb80d2444f Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Mon, 11 May 2026 10:08:27 -0400 Subject: [PATCH 1/3] chore: resolve open dependabot security alerts - fast-uri 3.1.0 -> 3.1.2 (high, alerts #37 #38) Signed-off-by: Jonathan Norris --- test/angular-integration/package-lock.json | 6 +++--- test/angular-integration/package.json | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/angular-integration/package-lock.json b/test/angular-integration/package-lock.json index b5ed0aa..5ea9034 100644 --- a/test/angular-integration/package-lock.json +++ b/test/angular-integration/package-lock.json @@ -2340,9 +2340,9 @@ } }, "node_modules/fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.2.tgz", + "integrity": "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==", "dev": true, "funding": [ { diff --git a/test/angular-integration/package.json b/test/angular-integration/package.json index 4bb736c..58c8766 100644 --- a/test/angular-integration/package.json +++ b/test/angular-integration/package.json @@ -32,6 +32,7 @@ }, "overrides": { "esbuild": "^0.25.0", + "fast-uri": ">=3.1.2", "minimatch": "^9.0.7", "picomatch": "^4.0.4", "postcss": "^8.5.10", From fc1a488c91acd8bea5c5b2e285e203d23c36d0b4 Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Tue, 12 May 2026 15:50:58 -0400 Subject: [PATCH 2/3] chore: use caret range for fast-uri override Signed-off-by: Jonathan Norris --- test/angular-integration/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/angular-integration/package.json b/test/angular-integration/package.json index 58c8766..b32db89 100644 --- a/test/angular-integration/package.json +++ b/test/angular-integration/package.json @@ -32,7 +32,7 @@ }, "overrides": { "esbuild": "^0.25.0", - "fast-uri": ">=3.1.2", + "fast-uri": "^3.1.2", "minimatch": "^9.0.7", "picomatch": "^4.0.4", "postcss": "^8.5.10", From e4d25b0a3c2fff61cbcf06f1e1dcc3576df46c43 Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Tue, 12 May 2026 16:01:30 -0400 Subject: [PATCH 3/3] chore: regenerate OpenAPI client with oapi-codegen v2.7.0 Signed-off-by: Jonathan Norris --- internal/api/client/sync_client.gen.go | 47 ++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/internal/api/client/sync_client.gen.go b/internal/api/client/sync_client.gen.go index 673c280..64e4736 100644 --- a/internal/api/client/sync_client.gen.go +++ b/internal/api/client/sync_client.gen.go @@ -1,6 +1,6 @@ // Package syncclient provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT. package syncclient import ( @@ -18,7 +18,7 @@ import ( ) const ( - BearerAuthScopes = "bearerAuth.Scopes" + BearerAuthScopes bearerAuthContextKey = "bearerAuth.Scopes" ) // Defines values for ManifestFlagType. @@ -173,6 +173,9 @@ type ManifestFlagResponse struct { UpdatedAt time.Time `json:"updatedAt"` } +// bearerAuthContextKey is the context key for bearerAuth security scheme +type bearerAuthContextKey string + // PostOpenfeatureV0ManifestFlagsJSONBody defines parameters for PostOpenfeatureV0ManifestFlags. type PostOpenfeatureV0ManifestFlagsJSONBody struct { // DefaultValue Default value for a flag (can be boolean, string, integer, or object) @@ -502,7 +505,7 @@ func NewGetOpenfeatureV0ManifestRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -540,7 +543,7 @@ func NewPostOpenfeatureV0ManifestFlagsRequestWithBody(server string, contentType return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -576,7 +579,7 @@ func NewDeleteOpenfeatureV0ManifestFlagsKeyRequest(server string, key string) (* return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -621,7 +624,7 @@ func NewPutOpenfeatureV0ManifestFlagsKeyRequestWithBody(server string, key strin return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -716,6 +719,14 @@ func (r GetOpenfeatureV0ManifestResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOpenfeatureV0ManifestResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostOpenfeatureV0ManifestFlagsResponse struct { Body []byte HTTPResponse *http.Response @@ -743,6 +754,14 @@ func (r PostOpenfeatureV0ManifestFlagsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostOpenfeatureV0ManifestFlagsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteOpenfeatureV0ManifestFlagsKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -769,6 +788,14 @@ func (r DeleteOpenfeatureV0ManifestFlagsKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteOpenfeatureV0ManifestFlagsKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PutOpenfeatureV0ManifestFlagsKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -797,6 +824,14 @@ func (r PutOpenfeatureV0ManifestFlagsKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PutOpenfeatureV0ManifestFlagsKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + // GetOpenfeatureV0ManifestWithResponse request returning *GetOpenfeatureV0ManifestResponse func (c *ClientWithResponses) GetOpenfeatureV0ManifestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenfeatureV0ManifestResponse, error) { rsp, err := c.GetOpenfeatureV0Manifest(ctx, reqEditors...)