21 lines
693 B
Kotlin
21 lines
693 B
Kotlin
package hep.dataforge.vision.examples
|
|
|
|
import com.github.ricky12awesome.jss.encodeToSchema
|
|
import hep.dataforge.vision.solid.SolidGroup
|
|
import hep.dataforge.vision.solid.SolidManager
|
|
import kotlinx.serialization.ExperimentalSerializationApi
|
|
import kotlinx.serialization.json.Json
|
|
|
|
@ExperimentalSerializationApi
|
|
fun main() {
|
|
val schema = Json {
|
|
serializersModule = SolidManager.serializersModuleForSolids
|
|
prettyPrintIndent = " "
|
|
prettyPrint = true
|
|
ignoreUnknownKeys = true
|
|
isLenient = true
|
|
coerceInputValues = true
|
|
encodeDefaults = true
|
|
}.encodeToSchema(SolidGroup.serializer(), generateDefinitions = false)
|
|
println(schema)
|
|
} |