File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/commonMain/kotlin/io/github/optimumcode/json/schema Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
package io.github.optimumcode.json.schema
2
2
3
3
import io.github.optimumcode.json.pointer.JsonPointer
4
+ import kotlinx.serialization.Serializable
4
5
import kotlin.jvm.JvmField
5
6
6
7
public sealed class ValidationOutput private constructor() {
7
8
public abstract val valid: Boolean
8
9
10
+ @Serializable
9
11
public data class Flag (override val valid : Boolean ) : ValidationOutput() {
10
12
public companion object {
11
13
@JvmField
@@ -16,11 +18,13 @@ public sealed class ValidationOutput private constructor() {
16
18
}
17
19
}
18
20
21
+ @Serializable
19
22
public data class Basic (
20
23
override val valid : Boolean ,
21
24
public val errors : Set <OutputUnit > = emptySet(),
22
25
) : ValidationOutput()
23
26
27
+ @Serializable
24
28
public data class OutputUnit (
25
29
override val valid : Boolean ,
26
30
public val keywordLocation : JsonPointer ,
You can’t perform that action at this time.
0 commit comments