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
6c2de6c151
The resolver just got an upgrade, polymorphic circular reference checking.
...
Building out models that have circular references is tricky. Particularly when they are polymorphic ones. The resolver now searches the polymorphic references for circular references as well (which is returning much more valuable results now). The low level model is now sensitive to this and will avoid building out anything that is circular.
2022-08-22 09:24:23 -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
0bd119f152
building out high model.
...
works just great, so happy the design came together!
2022-08-18 18:38:41 -04:00
Dave Shanley
0fd825aef8
High level model build is currently fast as lightning.
...
little refactoring to keep things all clean and in place.
2022-08-18 10:39:47 -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
Dave Shanley
422684ea52
Fixed borked tests after tuning server variable
...
man, tests are boring to write, but damn they save my ass every time.
2022-08-18 07:03:06 -04:00
Dave Shanley
0b87a18b20
added tag test, 3.0 low model is now fully tested.
...
lets move onto the high level for 3.0
2022-08-18 06:57:01 -04:00
Dave Shanley
74c361115f
added server tests
...
just tags left to go now, and the low 3.0 model is in place.
2022-08-17 09:44:23 -04:00
Dave Shanley
455a2f2ede
Added security scheme coverage for the v3 model.
...
almost there now.
2022-08-17 09:19:02 -04:00
Dave Shanley
75c7c83e31
Bumping coverage on schema to 100%
...
I think it should be pretty much bullet proof at the moment (until the next failure). Also added external index lookups from main index for external docs. found this bug after refining lookups in schemas.
2022-08-17 08:09:01 -04:00
Dave Shanley
7c2a65f640
Added responses and response test
...
also added a new null check utility, not sure we need it right now however, but it's there.
2022-08-16 08:51:59 -04:00
Dave Shanley
d4bfafb3b8
And another deleted file.
...
I have no idea when this got added.
2022-08-15 21:47:03 -04:00
Dave Shanley
e2a290314d
no idea how this file got added
...
typing too fast most likely.
2022-08-15 21:45:44 -04:00
Dave Shanley
9e02f203e2
fixed typo added
...
computer went strange, random chars picked up from keyboard.
or I was just a bit drunk.
2022-08-15 21:36:12 -04:00
Dave Shanley
93fc2a79fe
added tests for v3 request_body
...
after a few drinks, not so easy.
2022-08-15 21:34:28 -04:00
Dave Shanley
10bf40ad97
Paths test coverage is completed.
...
Found some good gaps a holes in existing overage.
2022-08-15 17:52:32 -04:00
Dave Shanley
7ce5f5438f
oauth_flows test coverage complete
2022-08-14 08:41:32 -04:00
Dave Shanley
1c9f6bbfcc
adding tests, fixing bugs, validating model.
...
Amazing what you find when you really test the fuck out of things.
2022-08-14 08:18:27 -04:00
Dave Shanley
1d77840470
Test coverage bump
2022-08-14 05:29:37 -04:00
Dave Shanley
67c701ff07
Refactoring extraction and builder functions.
...
now things are robust, we can move things around a little to prepare for the next set of incoming models. The extraction and builder functions have all been moved to the low packakge, and out of the v3 package.
2022-08-14 04:03:13 -04:00
Dave Shanley
acee81f126
Added external doc test
2022-08-14 04:00:11 -04:00
Dave Shanley
221eee1bd2
Adding tests to v3 models.
...
I am going to be able to peel off a lot of this code for the 2.0 and 3.1 models.
2022-08-13 09:33:43 -04:00
Dave Shanley
e25f82f70c
Working through error handling.
...
tough to trigger them, but possible. callback model now has 100% coverage.
2022-08-12 11:57:53 -04:00
Dave Shanley
c320b2b9f1
Operating at speed now.
...
Stripe API is slowest to build at about 1.2s, the depth of the schemas on that spec are insane. The only way to speed things up here is to NOT wait for threads to finish before returning the model, and this creates a broken guarantee as the model won't be finished building by the time its returned to the consumer. When running tests against this - they fail randomly. depending on which thread reaches the finish first, before trying to be read.
This isn't an option, so for now, this is as fast as she will get, which is pretty good. 5ms for petstore and about 250ms for k8s.
2022-08-12 09:41:03 -04:00
Dave Shanley
51c4d08b5a
Another pipeline error
...
fixed I hope!
2022-08-12 07:22:43 -04:00
Dave Shanley
392d217c4e
index glitch found, should smash pipline failures.
...
whoops!
2022-08-12 07:20:15 -04:00
Dave Shanley
8fe73bab6d
roll back version of golang to see if thats the cause of the issue?
2022-08-12 07:06:04 -04:00
Dave Shanley
a8623ceec4
Test is borked in pipeline, works fine locally.
...
trying to play whack-a-mole now to determine the failures.
2022-08-12 07:04:20 -04:00
Dave Shanley
248b4daa80
We-worked model to remove resolver.
...
lookups are performed inline now. keeps things simpler, however it has a performance knock, so it's time to refine async building were possible.
2022-08-11 14:54:25 -04:00
Dave Shanley
7f0e966bd3
Added build workflow.
...
Signed-off-by: Dave Shanley <dave@quobix.com >
2022-08-10 12:22:20 -04:00
Dave Shanley
717b7d4610
Full model is now in place,
...
Time to revisit each model and build individual tests to ensure all error handling is in place across the model.
Signed-off-by: Dave Shanley <dave@quobix.com >
2022-08-10 12:18:13 -04:00
Dave Shanley
3a41d86ee1
oAuth flows all wired up and tested
...
working through the components, then back to document, then a QA check.
Signed-off-by: Dave Shanley <dave@quobix.com >
2022-08-10 07:58:15 -04:00
Dave Shanley
402a7c7e5a
Components are in, writing new content for them and tests!
...
And, thats basically it (almost)
2022-08-09 10:23:18 -04:00
Dave Shanley
ec87ddf8cc
Operartion model is now complete!
...
That should be the largest bulk of complexity, now onto components.
2022-08-09 07:59:22 -04:00
Dave Shanley
e8bb52bf3d
Starting work on oAuth Flows.
2022-08-06 18:40:23 -04:00
Dave Shanley
95e3cd9604
Fixed broken tests and ready to keep chugging
2022-08-06 18:06:22 -04:00
Dave Shanley
2793504a92
Starting to firm up with design choices
...
lots more of the model coming online now.
2022-08-06 15:54:07 -04:00
Dave Shanley
016595c905
Most of the core functions are now in place
...
The hardest part has come and gone! it's all downhill now.
2022-08-06 09:32:48 -04:00
Dave Shanley
13781cbbde
Working in generics now to reduce code.
...
generics are a little funky still. sigh.
2022-08-05 21:57:04 -04:00
Dave Shanley
4bb6a9ad49
Additional properties now supported.
2022-08-05 13:20:29 -04:00
Dave Shanley
bdb9aa7c41
Working through building out schema models.
...
Perhaps the most complex model in the stack, almost there! a small amount of refactoring also to help things stay clean.
2022-08-05 12:47:50 -04:00
Dave Shanley
e6518af576
Building out spec model
...
this one will take a few tests, there is significant recursion and threading going on.
2022-08-04 10:01:59 -04:00
Dave Shanley
a4012594de
Building out model some more.
...
everything is holding up well.
2022-07-31 16:15:01 -04:00
Dave Shanley
2f60694047
Added tag model build out with tests.
...
Working through patterns and re-applying them as I go, cleaning things up as I cook.
2022-07-31 12:04:15 -04:00
Dave Shanley
23b0357aa0
Adding tests to cover model as we grow it.
2022-07-30 22:02:05 -04:00
Dave Shanley
7535cf568c
Working through the model builder
...
Shaping out the design as I go, what makes sence, what feels right, what do we need, how do we want to use it and how to we want to search it etc.
2022-07-30 15:27:21 -04:00