schema
schema copied to clipboard
Question: How to define self referential schemas
I have a schema that references itself in a property, and couldn't figure out a way to declare this.
For example:
person = Schema({
"first_name": str,
"last_name": str,
"age": int,
"children": [person]
}, name="person")