object JsonPath
An extremely small subset of JSONPath spec (@see https://goessner.net/articles/JsonPath/index.html)
It meant only to match output of json-schema-validator library and be immediately transformed into Pointer, which is a common format for schema-ddl
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JsonPath
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- val CurrentChar: Char
- val IndexStart: Char
- val IndexStop: Char
- val RootChar: Char
- val SpecialChars: Set[Char]
- val current: Parser[Cursor]
- val down: Parser[Down]
- val index: Parser[Index]
- val jsonPath: Parser[NonEmptyList[Cursor]]
- val operator: Parser[NonEmptyList[Cursor]]
- def parse(str: String): Either[String, NonEmptyList[Cursor]]
- val root: Parser[Cursor]
-
def
toPointer(jsonPath: NonEmptyList[Cursor]): Either[SchemaPointer, SchemaPointer]
Try to convert to Pointer.SchemaPointer.
Try to convert to Pointer.SchemaPointer. We're interested only in
SchemaPointer
because JsonPath is used only within SelfSyntaxChecker, which works only with schemas- jsonPath
parsed minimal JSONPath string
- returns
either object with same semantics as Pointer.parseSchemaPointer - in case of unexpected schema property it fallsback to
DownField
, which will work out as a pointer, but can be invalid semantically
- object Cursor