path

open override val path: String

Returns a JsonPath to the current location in the JSON value.

Note: the implementation is modified from the Moshi implementation to:

  • Remove the leading "$."

  • Remove square brackets in lists. This isn't great because it doesn't allow distinguishing lists from "0" keys but this is how File Upload works: https://github.com/jaydenseric/graphql-multipart-request-spec

  • Remove any trailing "."