def schema_path_helper(spec, path, view, **kwargs):

    resource = get_state(current_app).views[view]
    rule = rules[resource.rule]

    operations = defaultdict(Operation)
    view_instance = view()
    view_instance.spec_declaration(view, operations, spec)

    # add path arguments
    parameters = []
    for arg in rule.arguments:
        parameters.append({
            'name': arg,
            'in': 'path',
            'required': True,
            'type': 'string',
        })
    if parameters:
        path['parameters'] = parameters

    path.path = flask_path_to_swagger(resource.rule)
    path.operations = dict(**operations)
CompleteGroups produces zsh shell-code that completes system group
dataset/ETHPy150Open 4Catalyzer/flask-resty/flask_resty/spec/plugin.py/schema_path_helper--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_usage.py/ZshCompleterTestCase.test_groups