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

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

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

data class UniqueItemsSchema(val unique: Boolean, override val location: SourceLocation) : Schema(location) {
    override fun 

accept(visitor: SchemaVisitor

): P? = visitor.visitUniqueItemsSchema(this) } internal val uniqueItemsLoader: KeywordLoader = { ctx -> UniqueItemsSchema(ctx.keywordValue.requireBoolean().value, ctx.location) } data class UniqueItemsValidationFailure( val arrayPositions: List, override val schema: UniqueItemsSchema, override val instance: IJsonArray<*> ) : ValidationFailure("the same array element occurs at positions " + arrayPositions.joinToString(", "), schema, instance, Keyword.UNIQUE_ITEMS)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy