Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Permit auto generation of definition schema names #167
The case we faced is the following one:
When we try to define NodeList in APIspec, the NodeSchema is not yet reference, so its structure is inlined. As it is self referencing, the inline results in an infinite recursion, so it crashes
The global solution is to add definitions of our Schema in the right order. As we use APIspec in hapic (a generic auto-documented REST API framework), we can't assume that schema will be defined in the right order for APIspec.
There are two ways to get schemas defined in the right order:
How it works:
We'd be happy this PR to be accepted fast, let us know if you are ok and/or if we should change some stuff for the PR to be accepted (naming, etc).
Thanks for clarifying the spec. I think this feature is useful.
@yoichi It's seems we have a problem with python2.7: when json.dumps (used in tests) we got an