We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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")
The text was updated successfully, but these errors were encountered:
hey, we did self-referential schemas this way:
person_defn = dict() person_defn.update( { "first_name": str, "last_name": str, "age": int, "children": [person_defn] } ) person = Schema(person_defn)
Sorry, something went wrong.
No branches or pull requests
I have a schema that references itself in a property, and couldn't figure out a way to declare this.
For example:
The text was updated successfully, but these errors were encountered: