Skip to content

Commit

Permalink
Merge pull request #51 from Liftric/feat/prepare-patch
Browse files Browse the repository at this point in the history
Refactor: Ignore unknown Json keys
  • Loading branch information
benjohnde authored May 2, 2022
2 parents 65d1826 + c764415 commit 44f8e7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: CI

on: [push]
on:
pull_request:
types: [ opened, reopened, synchronize ]
branches:
- master
push:
branches:
- master

jobs:
test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import kotlinx.serialization.json.Json
open class IdentityProviderClient(region: String, clientId: String) : IdentityProvider {
private val json = Json {
allowStructuredMapKeys = true
ignoreUnknownKeys = true
}
private val configuration = Configuration(region, clientId)
private val client = HttpClient {
Expand Down
2 changes: 1 addition & 1 deletion src/jsMain/kotlin/ResponseJS.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ data class AuthenticationResultJS(
val TokenType: String,
val NewDeviceMetadata: NewDeviceMetadataJS? = null
)
data class NewDeviceMetadatatJS(
data class NewDeviceMetadataJS(
val DeviceGroupKey: String? = null,
val DeviceKey: String? = null,
)
Expand Down

0 comments on commit 44f8e7d

Please sign in to comment.