Skip to content

Commit

Permalink
fix complication errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Sep 18, 2023
1 parent a271689 commit df31199
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- name: Build klibs
run: ./gradlew iosArm64MainKlibrary iosX64MainKlibrary
- name: Build XCFrameworks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- name: Publish to Maven Local
run: ./gradlew clean publishToMavenLocal
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- name: Publish to Sonatype
run: ./gradlew clean publishToSonatype closeSonatypeStagingRepository
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ data class TestCredential (

@SerialName("value")
val value: String
) : CredentialSubject()
) : CredentialSubject(id)

class TestCredentialDataProvider(
private val clock: Clock = Clock.System,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ data class AtomicAttribute2023 (

@SerialName("mime-type")
val mimeType: String,

) : CredentialSubject() {

constructor(id: String, name: String, value: String) : this(id, name, value, "application/text")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import kotlinx.serialization.json.Json
class CredentialSubjectTest : FreeSpec({
"Subclasses are correctly deserialized" {
@Serializable
class SpecializedCredentialTest(override val id: String, @SerialName("not-foo") val foo: String): CredentialSubject()
class SpecializedCredentialTest(override val id: String, @SerialName("not-foo") val foo: String): CredentialSubject(
id
)
val result = Json.decodeFromString<SpecializedCredentialTest>("{\"id\":\"Test\",\"not-foo\":\"bar\"}")
result.id shouldBe "Test"
result.foo shouldBe "bar"
Expand Down

0 comments on commit df31199

Please sign in to comment.