src/Graviton/SchemaBundle/Constraint/ConstraintUtils.php
public function getNormalizedPathFromPointer(JsonPointer $pointer = null)
    {
        $result = array_map(
            function ($path) {
                return sprintf(is_numeric($path) ? '[%d]' : '.%s', $path);
            },
            $pointer->getPropertyPaths()
        );
        return trim(implode('', $result), '.');
    }
public function getNormalizedPathFromPointer(JsonPointer $pointer = null)
    {
        $result = array_map(
            function ($path) {
                return sprintf(is_numeric($path) ? '[%d]' : '.%s', $path);
            },
            $pointer->getPropertyPaths()
        );
        return trim(implode('', $result), '.');
    }
public function getNormalizedPathFromPointer ( JsonPointer $ pointer = null ) { $ result = array_map ( function ( $ path ) { return sprintf ( is_numeric ( $ path ) ? '[%d]' : '.%s' , $ path ) ; } , $ pointer -> getPropertyPaths ( ) ) ; return trim ( implode ( '' , $ result ) , '.' ) ; }
own function to get standard path from a JsonPointer object

@param JsonPointer|null $pointer pointer

@return string path as string
own function to get standard path from a JsonPointer object