Commit Graph

7 Commits

Author SHA1 Message Date
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
1a71f449ff Huge performance increase with building.
Using some designs unearthed from building the higher level model, I have brough that design down to the lower level to speed things up. It only took 8 years, but finally, I think I have mastered mult-threading. No more deadlocks, and no more need for waitgroups for everything.
2022-08-22 09:46:44 -04:00
Dave Shanley
00267c91b9 components are in,
this should actually be the full model, the whole graph is in - now to optimize full model and check for circular deps.
then, it's time to move back in history and rebuild the swagger model.
2022-08-21 12:05:16 -04:00
Dave Shanley
5a2f3ca924 Schema async work complete. 2022-08-20 17:45:14 -04:00
Dave Shanley
0c2c008902 Building out highlevel model
bit by bit, step by step.
2022-08-19 10:01:16 -04:00
Dave Shanley
10dbc203f6 v3 high level model foundation in place.
I think this API is going to be pretty sweet myself. Just what I've been looking for.
2022-08-18 09:41:44 -04:00
Dave Shanley
686b744852 Adding 3.0 high level models
The part most people will need, the most.
2022-08-18 07:51:55 -04:00