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

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

There is a newer version: 0.20.0
Show newest version
package com.github.erosb.jsonsKema

data class MinItemsSchema(val minItems: Number, override val location: SourceLocation) : Schema(location) {
    override fun 

accept(visitor: SchemaVisitor

): P? = visitor.visitMinItemsSchema(this) } internal val minItemsLoader: KeywordLoader = { ctx -> MinItemsSchema(ctx.keywordValue.requireNumber().value, ctx.location) } data class MinItemsValidationFailure( override val schema: MinItemsSchema, override val instance: IJsonArray<*> ) : ValidationFailure("expected minimum items: ${schema.minItems}, found only ${instance.length()}", schema, instance, Keyword.MIN_ITEMS)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy