All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.erosb.jsonsKema.AnyOf.kt Maven / Gradle / Ivy

There is a newer version: 0.20.0
Show newest version
package com.github.erosb.jsonsKema


data class AnyOfSchema(
    val subschemas: List,
    override val location: SourceLocation
) : Schema(location) {
    override fun 

accept(visitor: SchemaVisitor

) = visitor.visitAnyOfSchema(this) override fun subschemas(): Collection = subschemas } internal val anyOfLoader: KeywordLoader = { ctx -> AnyOfSchema(arrayToSubschemaList(ctx.keywordValue.requireArray(), ctx.subschemaLoader), ctx.location) } data class AnyOfValidationFailure( override val schema: AnyOfSchema, override val instance: IJsonValue, override val causes: Set ) : ValidationFailure( message = "no subschema out of ${schema.subschemas.size} matched", schema = schema, instance = instance, causes = causes, keyword = Keyword.ANY_OF )





© 2015 - 2025 Weber Informatics LLC | Privacy Policy