def lint_http_methods(spec, resolver):
    """
    Must: Use HTTP Methods Correctly

    http://zalando.github.io/restful-api-guidelines/http/Http.html#must-use-http-methods-correctly
    """
    for path_name, methods_available in spec.get('paths', {}).items():
        if path_name.endswith('}') and 'post' in methods_available:
            yield 'paths/"{}"'.format(path_name
                ), 'the POST method is used on a path ending with a path variable'
