Minor change to meta serialization descriptors
This commit is contained in:
parent
1b46d00a91
commit
47d49d1e0e
@ -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")
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user