src/Validation/ErrorTranslator.php
public function memberRequired(string $path, string $member): ErrorInterface
    {
        return new Error(
            null,
            null,
            Response::HTTP_BAD_REQUEST,
            $this->trans('member_required', 'code'),
            $this->trans('member_required', 'title'),
            $this->trans('member_required', 'detail', compact('member')),
            $this->pointer($path)
        );
    }
public function memberRequired(string $path, string $member): ErrorInterface
    {
        return new Error(
            null,
            null,
            Response::HTTP_BAD_REQUEST,
            $this->trans('member_required', 'code'),
            $this->trans('member_required', 'title'),
            $this->trans('member_required', 'detail', compact('member')),
            $this->pointer($path)
        );
    }
Create an error for a member that is required.

@param string $path
@param string $member
@return ErrorInterface