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

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

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

data class PrefixItemsValidationFailure(
    val itemFailures: Map,
    override val schema: PrefixItemsSchema,
    override val instance: IJsonArray<*>
) : ValidationFailure(
    "array items ${itemFailures.keys.joinToString(", ")} failed to validate against \"prefixItems\" subschema",
    schema,
    instance,
    Keyword.PREFIX_ITEMS,
    itemFailures.values.toSet()
)

internal val prefixItemsLoader: KeywordLoader = { ctx ->
    PrefixItemsSchema(ctx.keywordValue.requireArray().elements.map { ctx.subschemaLoader(it) }, ctx.location)
}

data class PrefixItemsSchema(val prefixSchemas: List, override val location: SourceLocation) : Schema(location) {
    override fun 

accept(visitor: SchemaVisitor

): P? = visitor.visitPrefixItemsSchema(this) override fun subschemas(): Collection = prefixSchemas }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy