# Path: falsy/utils/marshmallow.py
# def validate(argmap):
#     schema = argmap2schema(argmap)
# 
#     def decorator(func):
#         @functools.wraps(func)
#         def decorated(*args, **kwargs):
#             e = schema.validate(kwargs)
#             if e:
#                 raise MMException(str(e))
#             return func(*args, **kwargs)
# 
#         return decorated
# 
#     return decorator


import json
from marshmallow import fields
from falsy.utils.marshmallow import validate





argmap = {
    'name': fields.Str(required=False),
}



# Path: falsy/utils/marshmallow.py
# def validate(argmap):
#     schema = argmap2schema(argmap)
# 
#     def decorator(func):
#         @functools.wraps(func)
#         def decorated(*args, **kwargs):
#             e = schema.validate(kwargs)
#             if e:
#                 raise MMException(str(e))
#             return func(*args, **kwargs)
# 
#         return decorated
# 
#     return decorator


# Path: demo/mm2/ops/hello.py
import json
from marshmallow import fields
from falsy.utils.marshmallow import validate






argmap = {
    'name': fields.Str(required=False),
}



@validate(argmap)