Minor change to meta serialization descriptors

This commit is contained in:
Alexander Nozik 2020-12-03 13:35:19 +03:00
parent 1b46d00a91
commit 47d49d1e0e
4 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@ plugins {
id("ru.mipt.npm.project") id("ru.mipt.npm.project")
} }
val dataforgeVersion by extra("0.2.1-dev-1") val dataforgeVersion by extra("0.2.1-dev-2")
val bintrayRepo by extra("dataforge") val bintrayRepo by extra("dataforge")
val githubProject by extra("dataforge-core") val githubProject by extra("dataforge-core")

View File

@ -58,7 +58,7 @@ public object MetaSerializer : KSerializer<Meta> {
MetaItemSerializer//MetaItem.serializer(MetaSerializer) MetaItemSerializer//MetaItem.serializer(MetaSerializer)
) )
override val descriptor: SerialDescriptor get() = mapSerializer.descriptor override val descriptor: SerialDescriptor = buildClassSerialDescriptor("Meta")
override fun deserialize(decoder: Decoder): Meta { override fun deserialize(decoder: Decoder): Meta {
return if (decoder is JsonDecoder) { return if (decoder is JsonDecoder) {

View File

@ -27,7 +27,6 @@ public object ValueSerializer : KSerializer<Value> {
} }
} }
override fun deserialize(decoder: Decoder): Value { override fun deserialize(decoder: Decoder): Value {
val isList = decoder.decodeBoolean() val isList = decoder.decodeBoolean()
return if (isList) { return if (isList) {

View File

@ -27,7 +27,7 @@ pluginManagement {
include( include(
":dataforge-meta", ":dataforge-meta",
":dataforge-io", ":dataforge-io",
// ":dataforge-io:dataforge-io-yaml", ":dataforge-io:dataforge-io-yaml",
":dataforge-context", ":dataforge-context",
":dataforge-data", ":dataforge-data",
// ":dataforge-output", // ":dataforge-output",