Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: objects not serializing, switch to data class
Browse files Browse the repository at this point in the history
  • Loading branch information
brizzbuzz committed May 6, 2023
1 parent 6dc0c8d commit c352213
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
@file:OptIn(ExperimentalSerializationApi::class)

package io.bkbn.spekt.openapi_3_0

import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonContentPolymorphicSerializer
import kotlinx.serialization.json.JsonElement
Expand All @@ -27,10 +30,10 @@ object SecuritySchemeSerializer : JsonContentPolymorphicSerializer<SecuritySchem
sealed interface SecurityScheme

@Serializable
object BasicAuthSecurityScheme : SecurityScheme
data class BasicAuthSecurityScheme(val type: String, val scheme: String) : SecurityScheme

@Serializable
object BearerAuthSecurityScheme : SecurityScheme
data class BearerAuthSecurityScheme(val type: String, val scheme: String) : SecurityScheme

@Serializable
data class ApiKeySecurityScheme(
Expand Down

0 comments on commit c352213

Please sign in to comment.