com.github.erosb.jsonsKema.UnevaluatedItemsSchema.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-sKema Show documentation
Show all versions of json-sKema Show documentation
JSON Schema Parser and Validator
package com.github.erosb.jsonsKema
data class UnevaluatedItemsSchema(
val unevaluatedItemsSchema: Schema,
override val location: SourceLocation
) : Schema(location) {
override fun accept(visitor: SchemaVisitor
): P? = visitor.visitUnevaluatedItemsSchema(this)
override fun subschemas() = listOf(unevaluatedItemsSchema)
}
data class UnevaluatedItemsValidationFailure(
val itemFailures: Map,
override val schema: UnevaluatedItemsSchema,
override val instance: IJsonArray<*>
) : ValidationFailure(
"array items ${itemFailures.keys.joinToString(", ")} failed to validate against \"unevaluatedItems\" subschema",
schema,
instance,
Keyword.UNEVALUATED_ITEMS,
itemFailures.values.toSet()
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy