com.github.erosb.jsonsKema.DynamicPath.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
class DynamicPath {
private val path = mutableListOf()
fun inSegmentPath(seg: String, cb: () -> P?): P? {
path.add(seg)
val rval = cb()
path.removeLast()
return rval
}
fun asPointer(): JsonPointer = JsonPointer(path.toList())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy