python - Flask_restplus recursive json_mapping -
is possible provide recursive mapping objects using same json_mapping?
exapmle:
person_json_mapping = api.model('person', { 'name': fields.string(), 'date_of_birth': fields.date(), 'parents': fields.list(fields.nested(##person_json_mapping##)) }
how use person_json_mapping inside self?
Comments
Post a Comment