Skip to content
Merged
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
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Changes the type of `value` in `TypeFormField` to `interface{}` instead of `string` to add support for any type of value in form fields.

### Migration

#### Typecast value of form fields to expected type before using it

To read a value from formFields where id is `name`,

Before:

```go
// formField should be of type []epmodels.TypeFormField
var name string
for id, value := range formFields {
if id == "name" {
name = value
}
}
```

After:

```go
// formField should be of type []epmodels.TypeFormField
var name string
for id, value := ranger formFields {
if id == "name" {
nameAsStr, asStrOk := value.(string)
if !asStrOk {
// Handle the error accordingly
}
name = nameAsStr
}
}
```

## [0.24.2] - 2024-09-03

- Fixes memory leak with the JWKS cache.
Expand Down
Loading