All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.erosb.jsonsKema.ExclusiveMaximum.kt Maven / Gradle / Ivy

There is a newer version: 0.20.0
Show newest version
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