# Path: netvisor/schemas/common.py
# class RejectUnknownFieldsSchema(Schema):
#     @pre_dump
#     def check_unknown_fields(self, data):
#         field_names = set()
#         for field_name, field in self.fields.items():
#             attribute = getattr(field, 'attribute', None)
#             field_names.add(field_name if attribute is None else attribute)
#         for k in data:
#             if k not in field_names:
#                 raise ValidationError("Unknown field name: '{}'".format(k))
# 
# Path: netvisor/schemas/fields.py
# class Boolean(fields.Boolean):
#     def __init__(self, true, false, **kwargs):
#         super(Boolean, self).__init__(**kwargs)
#         self.truthy = [true]
#         self.falsy = [false]
# 
#     def _serialize(self, value, attr, obj):
#         if value:
#             return self.truthy[0]
#         else:
#             return self.falsy[0]


from marshmallow import fields
from ..common import RejectUnknownFieldsSchema
from ..fields import Boolean
# -*- coding: utf-8 -*-
"""
    netvisor.schemas.customers.create
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    :copyright: (c) 2013-2016 by Fast Monkeys Oy.
    :license: MIT, see LICENSE for more details.
"""




# Path: netvisor/schemas/common.py
# class RejectUnknownFieldsSchema(Schema):
#     @pre_dump
#     def check_unknown_fields(self, data):
#         field_names = set()
#         for field_name, field in self.fields.items():
#             attribute = getattr(field, 'attribute', None)
#             field_names.add(field_name if attribute is None else attribute)
#         for k in data:
#             if k not in field_names:
#                 raise ValidationError("Unknown field name: '{}'".format(k))
# 
# Path: netvisor/schemas/fields.py
# class Boolean(fields.Boolean):
#     def __init__(self, true, false, **kwargs):
#         super(Boolean, self).__init__(**kwargs)
#         self.truthy = [true]
#         self.falsy = [false]
# 
#     def _serialize(self, value, attr, obj):
#         if value:
#             return self.truthy[0]
#         else:
#             return self.falsy[0]


# Path: netvisor/schemas/customers/create.py
from marshmallow import fields
from ..common import RejectUnknownFieldsSchema
from ..fields import Boolean

# -*- coding: utf-8 -*-
"""
    netvisor.schemas.customers.create
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    :copyright: (c) 2013-2016 by Fast Monkeys Oy.
    :license: MIT, see LICENSE for more details.
"""




class CustomerBaseInformationSchema(RejectUnknownFieldsSchema):