com.github.erosb.jsonsKema.PropertyNames.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-sKema Show documentation
Show all versions of json-sKema Show documentation
JSON Schema Parser and Validator
The newest version!
package com.github.erosb.jsonsKema
data class PropertyNamesSchema(
val propertyNamesSchema: Schema,
override val location: SourceLocation
) : Schema(location) {
override fun accept(visitor: SchemaVisitor
): P? = visitor.visitPropertyNamesSchema(this)
override fun subschemas(): Collection = setOf(propertyNamesSchema)
}
internal val propertyNamesLoader: KeywordLoader = {ctx ->
PropertyNamesSchema(ctx.subschemaLoader(ctx.keywordValue), ctx.location)
}
data class PropertyNamesValidationFailure(
override val schema: PropertyNamesSchema,
override val instance: IJsonObj,
val causesByProperties: Map,
override val dynamicPath: JsonPointer
) : ValidationFailure(
message = "",
schema = schema,
instance = instance,
keyword = Keyword.PROPERTY_NAMES,
causes = causesByProperties.values.toSet()
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy