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

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

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

data class MinPropertiesSchema(val minProperties: Number, override val location: SourceLocation) : Schema(location) {
    override fun 

accept(visitor: SchemaVisitor

): P? = visitor.visitMinPropertiesSchema(this) } internal val minPropertiesLoader: KeywordLoader = { ctx -> MinPropertiesSchema(ctx.keywordValue.requireNumber().value, ctx.location) } data class MinPropertiesValidationFailure( override val schema: MinPropertiesSchema, override val instance: IJsonObj, override val dynamicPath: JsonPointer ) : ValidationFailure("expected minimum properties: ${schema.minProperties}, found only ${instance.properties.size}", schema, instance, Keyword.MIN_PROPERTIES)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy