com.github.erosb.jsonsKema.ExclusiveMinimum.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
The newest version!
package com.github.erosb.jsonsKema
data class ExclusiveMinimumSchema(val minimum: Number, override val location: SourceLocation) : Schema(location) {
override fun accept(visitor: SchemaVisitor
): P? = visitor.visitExclusiveMinimumSchema(this)
}
internal val exclusiveMinimumLoader: KeywordLoader = { ctx ->
ExclusiveMinimumSchema(ctx.keywordValue.requireNumber().value, ctx.location)
}
data class ExclusiveMinimumValidationFailure(
override val schema: ExclusiveMinimumSchema,
override val instance: IJsonNumber,
override val dynamicPath: JsonPointer
) : ValidationFailure("${instance.value} is lower than or equal to minimum ${schema.minimum}", schema, instance, Keyword.EXCLUSIVE_MINIMUM)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy