From a8777543e7d132472bbe9dcd373520bfb92750a8 Mon Sep 17 00:00:00 2001 From: Jan Gaebel Date: Mon, 2 May 2022 13:41:10 +0200 Subject: [PATCH 1/4] refactor(json): enable ignore unknown keys --- .../kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commonMain/kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt b/src/commonMain/kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt index 067cdcb..a9fc72e 100644 --- a/src/commonMain/kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt +++ b/src/commonMain/kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt @@ -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 { From 2c170b8c532d6d8ca881a3be013d337c347974e8 Mon Sep 17 00:00:00 2001 From: Jan Gaebel Date: Mon, 2 May 2022 13:41:50 +0200 Subject: [PATCH 2/4] refactor(ci): run action on pr changes --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58acc78..d9d5e27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,13 @@ name: CI -on: [push] +on: + pull_request: + types: [ opened, reopened, synchronize ] + branches: + - master + push: + branches: + - master jobs: test: From 76b41ef54ea868f3957ba291df61b4f594b1276a Mon Sep 17 00:00:00 2001 From: Jan Gaebel Date: Mon, 2 May 2022 13:44:49 +0200 Subject: [PATCH 3/4] fix(js): missing import --- src/jsMain/kotlin/ResponseJS.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsMain/kotlin/ResponseJS.kt b/src/jsMain/kotlin/ResponseJS.kt index 417c2ad..2211595 100644 --- a/src/jsMain/kotlin/ResponseJS.kt +++ b/src/jsMain/kotlin/ResponseJS.kt @@ -97,7 +97,7 @@ data class AuthenticationResultJS( val IdToken: String, val RefreshToken: String? = null, val TokenType: String, - val NewDeviceMetadata: NewDeviceMetadataJS? = null + val NewDeviceMetadata: NewDeviceMetadatatJS? = null ) data class NewDeviceMetadatatJS( val DeviceGroupKey: String? = null, From c764415ffee4845972c5edcde866d42d030e1130 Mon Sep 17 00:00:00 2001 From: Jan Gaebel Date: Mon, 2 May 2022 14:11:05 +0200 Subject: [PATCH 4/4] chore(js): typo in data class name --- src/jsMain/kotlin/ResponseJS.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jsMain/kotlin/ResponseJS.kt b/src/jsMain/kotlin/ResponseJS.kt index 2211595..1bc48ec 100644 --- a/src/jsMain/kotlin/ResponseJS.kt +++ b/src/jsMain/kotlin/ResponseJS.kt @@ -97,9 +97,9 @@ data class AuthenticationResultJS( val IdToken: String, val RefreshToken: String? = null, val TokenType: String, - val NewDeviceMetadata: NewDeviceMetadatatJS? = null + val NewDeviceMetadata: NewDeviceMetadataJS? = null ) -data class NewDeviceMetadatatJS( +data class NewDeviceMetadataJS( val DeviceGroupKey: String? = null, val DeviceKey: String? = null, )