Commit Graph

6 Commits

Author SHA1 Message Date
Dave Shanley
2c4177e97a Swagger 2.0 high level model going in now
Shifting a few high level models around that are also shared. now it's just a churn game to flesh the high level model and test it up.
2022-09-09 07:08:52 -04:00
Dave Shanley
c34c4f668c Massive refactor on how the library handles schemas.
Schemas are now rendered on demand. There is no reasonable way to navigate the mayhem that is circular dependencies through multiple inheritance and polymorphism. So now using a msuch simpler design (and MUCH faster), there is a `SchemaProxy` for every schema reference. This holds a reference to the low model and index, that renders the schema on demand. Once rendered, it's done. Any children can also be rendered on demand, and so down the rabbit hole you do (if you want).

All circular dependencies are know by the index, so you can decide when you want to stop, or just keep going for ever, however it's now a choice, not something decided for you.

Signed-off-by: Dave Shanley <dave@quobix.com>
2022-08-27 09:47:37 -04:00
Dave Shanley
eda834f79f Working on building out models
a recursive approach? or a dfs approach? not sure yet. still playing with ideas.
2022-07-29 09:44:37 -04:00
Dave Shanley
31fa7ca7c4 Fixing these strange things going on with go.mod 2022-07-18 08:23:29 -04:00
Dave Shanley
4130fd0bb0 revving go.mod 2022-07-18 08:18:31 -04:00
Dave Shanley
8337bf0ef9 Addibng go.mod
fogot to check this in, now it will work.
2022-07-18 08:15:08 -04:00