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

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

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

class EnumSchema(val potentialValues: Collection, override val location: SourceLocation) : Schema(location) {
    override fun 

accept(visitor: SchemaVisitor

): P? = visitor.visitEnumSchema(this) } internal val enumLoader: KeywordLoader = { ctx -> EnumSchema(ctx.keywordValue.requireArray().elements, ctx.location) } class EnumValidationFailure( override val schema: EnumSchema, override val instance: IJsonValue ) : ValidationFailure("the instance is not equal to any enum values", schema, instance, Keyword.ENUM)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy