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

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

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

data class MaxItemsSchema(val maxItems: Number, override val location: SourceLocation) : Schema(location) {
    override fun 

accept(visitor: SchemaVisitor

): P? = visitor.visitMaxItemsSchema(this) } internal val maxItemsLoader: KeywordLoader = { ctx -> MaxItemsSchema(ctx.keywordValue.requireNumber().value, ctx.location) } data class MaxItemsValidationFailure( override val schema: MaxItemsSchema, override val instance: IJsonArray<*> ) : ValidationFailure("expected maximum items: ${schema.maxItems}, found ${instance.length()}", schema, instance, Keyword.MAX_ITEMS)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy