Function toDataPath

  • Convert a schema path (i.e. JSON pointer) to a data path.

    Data paths can be used in field change event handlers like handleChange.

    Parameters

    • schemaPath: string

      the schema path to be converted

    Returns string

    the data path

    Example

    toDataPath('#/properties/foo/properties/bar') === 'foo.bar')