com.github.erosb.jsonsKema.UnevaluatedProperties.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 UnevaluatedPropertiesSchema(
val unevaluatedPropertiesSchema: Schema,
override val location: SourceLocation
) : Schema(location) {
override fun accept(visitor: SchemaVisitor
): P? = visitor.visitUnevaluatedPropertiesSchema(this)
override fun subschemas() = listOf(unevaluatedPropertiesSchema)
}
data class UnevaluatedPropertiesValidationFailure(
val propertyFailures: Map,
override val schema: UnevaluatedPropertiesSchema,
override val instance: IJsonObj
) : ValidationFailure(
"object properties ${propertyFailures.keys.joinToString(", ")} failed to validate against \"unevaluatedProperties\" subschema",
schema,
instance,
Keyword.UNEVALUATED_PROPERTIES,
propertyFailures.values.toSet()
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy