def _get_field_doc(self, field):
        fieldspec = dict()
        fieldspec['type'] = field.__class__.__name__
        fieldspec['required'] = field.required
        fieldspec['validators'] = [{validator.__class__.__name__: validator.__dict__} for validator in field.validators]
        return fieldspec
Magic method (adopted ;)
dataset/ETHPy150Open wuher/devil/devil/docs/resource.py/DocumentedResource._get_field_doc--crossover with--dataset/ETHPy150Open riffm/mint/mint.py/Looper._Item.cycle