com.github.erosb.jsonsKema.ExclusiveMaximum.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 ExclusiveMaximumSchema(val maximum: Number, override val location: SourceLocation) : Schema(location) {
override fun accept(visitor: SchemaVisitor
): P? = visitor.visitExclusiveMaximumSchema(this)
}
internal val exclusiveMaximumLoader: KeywordLoader = { ctx ->
ExclusiveMaximumSchema(ctx.keywordValue.requireNumber().value, ctx.location)
}
data class ExclusiveMaximumValidationFailure(
override val schema: ExclusiveMaximumSchema,
override val instance: IJsonNumber
) : ValidationFailure("${instance.value} is greater than or equal to maximum ${schema.maximum}", schema, instance, Keyword.EXCLUSIVE_MAXIMUM)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy