src/Swagger/Serializer/DocumentationNormalizer.php
private function getPath(string $resourceShortName, string $operationName, array $operation, string $operationType): string
    {
        $path = $this->operationPathResolver->resolveOperationPath($resourceShortName, $operation, $operationType, $operationName);
        if ('.{_format}' === substr($path, -10)) {
            $path = substr($path, 0, -10);
        }

        return $path;
    }
private function getPath(string $resourceShortName, string $operationName, array $operation, string $operationType): string
    {
        $path = $this->operationPathResolver->resolveOperationPath($resourceShortName, $operation, $operationType, $operationName);
        if ('.{_format}' === substr($path, -10)) {
            $path = substr($path, 0, -10);
        }

        return $path;
    }
private function getPath ( string $ resourceShortName , string $ operationName , array $ operation , string $ operationType ) : string { $ path = $ this -> operationPathResolver -> resolveOperationPath ( $ resourceShortName , $ operation , $ operationType , $ operationName ) ; if ( '.{_format}' === substr ( $ path , - 10 ) ) { $ path = substr ( $ path , 0 , - 10 ) ; } return $ path ; }
Gets the path for an operation.

If the path ends with the optional _format parameter, it is removed
as optional path parameters are not yet supported.

@see https://github.com/OAI/OpenAPI-Specification/issues/93
Gets the path for an operation .