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

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -