schema icon indicating copy to clipboard operation
schema copied to clipboard

Question: How to define self referential schemas

Open alisaifee opened this issue 3 years ago • 1 comments

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")

alisaifee avatar Mar 28 '21 15:03 alisaifee