Skip to content

Commit af5daf0

Browse files
authored
Merge pull request #398 from nscaledev/bump
bump
2 parents c7330dd + 3f7eac9 commit af5daf0

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

charts/identity/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: A Helm chart for deploying Unikorn's IdP
44

55
type: application
66

7-
version: 1.14.0-rc4
8-
appVersion: 1.14.0-rc4
7+
version: 1.14.0
8+
appVersion: 1.14.0
99

1010
icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png
1111

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/spf13/pflag v1.0.10
1616
github.com/spjmurray/go-util v0.1.3
1717
github.com/stretchr/testify v1.11.1
18-
github.com/unikorn-cloud/core v1.14.0-rc4
18+
github.com/unikorn-cloud/core v1.14.0
1919
go.opentelemetry.io/otel v1.35.0
2020
go.uber.org/mock v0.5.2
2121
golang.org/x/oauth2 v0.30.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
172172
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
173173
github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
174174
github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
175-
github.com/unikorn-cloud/core v1.14.0-rc4 h1:OGh6HL5Ut+N0983nqdc1jzyTNeojRsQvERWLZ1w51oo=
176-
github.com/unikorn-cloud/core v1.14.0-rc4/go.mod h1:NBcUrdV7RKIPFBdootNeN74otIoNLQp14+KpVE5m1X0=
175+
github.com/unikorn-cloud/core v1.14.0 h1:DAt+RVFyI7KU4+Et0jO+K3r1YqbXwJJMkUJFzTVcDEA=
176+
github.com/unikorn-cloud/core v1.14.0/go.mod h1:NBcUrdV7RKIPFBdootNeN74otIoNLQp14+KpVE5m1X0=
177177
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
178178
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
179179
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

pkg/middleware/openapi/openapi.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,13 +411,18 @@ func (v *Validator) handle(ctx context.Context, w http.ResponseWriter, r *http.R
411411
if v.options.runtimeSchemaValidation {
412412
response := middleware.CaptureResponse(w, r, next)
413413

414+
// Save the full output string slice now so we can report this
415+
// later. bytes.Buffer doesn't allow its file pointer to be
416+
// reset ala fseek. after the validation has occurred.
417+
bodyString := response.Body().String()
418+
414419
responseValidationInput.Status = response.StatusCode()
415420
responseValidationInput.Header = w.Header()
416421
responseValidationInput.Body = io.NopCloser(response.Body())
417422

418423
if err := openapi3filter.ValidateResponse(ctx, responseValidationInput); err != nil {
419424
if v.options.runtimeSchemaValidationPanic {
420-
panic(err)
425+
panic(fmt.Errorf("%w: status: %d, header: %v, body: %s", err, response.StatusCode(), w.Header(), bodyString))
421426
}
422427

423428
log.FromContext(ctx).Error(err, "response openapi schema validation failure")

pkg/openapi/schema.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/openapi/server.spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ info:
1111
if they are being consumed by a horizontally scalable platform care must be taken
1212
to ensure token rotation is handled atomically by a single process, and the tokens
1313
are distributed to each service instance synchronously.
14-
version: 1.13.0
14+
version: 1.14.0
1515
paths:
1616
/.well-known/openid-configuration:
1717
description: |-

0 commit comments

Comments
 (0)