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

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

The newest version!
package com.github.erosb.jsonsKema

data class MultipleOfSchema(val denominator: Number, override val location: SourceLocation) : Schema(location) {
    override fun 

accept(visitor: SchemaVisitor

): P? = visitor.visitMultipleOfSchema(this) } internal val multipleOfLoader: KeywordLoader = { ctx -> MultipleOfSchema(ctx.keywordValue.requireNumber().value, ctx.location) } data class MultipleOfValidationFailure( override val schema: MultipleOfSchema, override val instance: IJsonNumber, override val dynamicPath: JsonPointer ) : ValidationFailure("${instance.value} is not a multiple of ${schema.denominator}", schema, instance, Keyword.MULTIPLE_OF)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy