Instead of nesting the data structures, putting them in literally. This did not work originally, but now seems to be the only way it worked. Not sure what changed.
Pulling schemas out into their own definition file.
Refactor to abstract out the router.
Improve error handling. Tweaks to the resttest file.