Function toDataPathSegments

  • Convert a schema path (i.e. JSON pointer) to an array by splitting at the '/' character and removing all schema-specific keywords.

    The returned value can be used to de-reference a root object by folding over it and de-referencing the single segments to obtain a new object.

    Parameters

    • schemaPath: string

      the schema path to be converted

    Returns string[]

    an array containing only non-schema-specific segments