com.github.erosb.jsonsKema.Minimum.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 MinimumValidationFailure(
override val schema: MinimumSchema,
override val instance: IJsonNumber
) : ValidationFailure("${instance.value} is lower than minimum ${schema.minimum}", schema, instance, Keyword.MINIMUM)
internal val minimumLoader:KeywordLoader = { ctx ->
MinimumSchema(ctx.keywordValue.requireNumber().value, ctx.location)
}
data class MinimumSchema(val minimum: Number, override val location: SourceLocation) : Schema(location) {
override fun accept(visitor: SchemaVisitor
): P? = visitor.visitMinimumSchema(this)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy