Commit Graph

481 Commits

Author SHA1 Message Date
quobix
04f5514fa0 bumped coverage
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
a6496ae54d added more coverage
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
c7378b3adb tuned coverage
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
56cb1c8694 more cleanup and coverage
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
2f82a69d6c A clean sweep around resolving during model builds.
Really hammering on this model using all available examples of crazy references used in crazy ways. The fixes mean I can delete the recent patch added to handle lost indexes.

I spent two days on this commit.

Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
f46408d529 added getter check for context
Signed-off-by: quobix <dave@quobix.com>
2024-02-16 09:46:31 -05:00
quobix
5d49ae0267 cleaning up experience when using libopenapi via vacuum.
now most of the big bugs are out of the way, we can focus on refinement.

Signed-off-by: quobix <dave@quobix.com>
2024-02-16 09:46:31 -05:00
quobix
5ea4f2b762 Fixed last known lookup bug
All known gaps (well known in my own head) seem to have been closed now, the final TODO in this area has been cleaned up, highlighted by an issue reported by speakeasy.

Signed-off-by: quobix <dave@quobix.com>
2024-02-13 07:33:55 -05:00
quobix
af665c95c1 bumped coverage with another test
Signed-off-by: quobix <dave@quobix.com>
2024-02-13 07:33:55 -05:00
quobix
974c7bbf49 Fixed issue reported in discord channel
Building out a model, the current position was getting a bit muddled with deeply nested file references.

Signed-off-by: quobix <dave@quobix.com>
2024-02-13 07:33:55 -05:00
quobix
7afb1e9d11 Addressed #159
Cleaned up all interesting static checks. All that is left is cosmetics.

Signed-off-by: quobix <dave@quobix.com>
2024-02-06 22:13:41 -05:00
quobix
30561ba8be bumped 3.1 schema
Signed-off-by: quobix <dave@quobix.com>
2024-02-03 10:33:36 -07:00
quobix
469d5235d7 Addressed #243
Was missing the correct call to ensure context was returned correctly.

Signed-off-by: quobix <dave@quobix.com>
2024-02-03 10:33:36 -07:00
quobix
a24c05036b Fixed runaway rolodex.
The rolodex was running away and locking up vacuum.

Signed-off-by: quobix <dave@quobix.com>
2024-02-03 10:33:36 -07:00
quobix
a59a4b6da3 bumped coverage
Signed-off-by: quobix <dave@quobix.com>
2024-01-27 14:09:41 -05:00
quobix
8039927eb5 Added support for empty security requirements.
A new property named `ContainsEmptyRuleRequirement` will exist when a requirement contains an empty object. This acts as a ‘none’ concept that can be used by applications downstream.

Signed-off-by: quobix <dave@quobix.com>
2024-01-27 14:09:41 -05:00
quobix
43860f4e3c Added some new getters to the index
Also added map conversion utilities based on reported vacuum error https://github.com/daveshanley/vacuum/issues/417
also prevented the bundler from inlining root references.

Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
2bc6e9f028 Added ‘bundler’ module
resolves a v3 document or a model into a single document.

Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
1da99d7efe bumped coverage
Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
ce6b9b9470 Added windows support, all tests pass now. 2024-01-18 15:11:39 -05:00
quobix
f4647af7b4 Added switch to resolver for preventing duplication.
vacuum runs things multiple times. which is causing skew on references.

Signed-off-by: quobix <dave@quobix.com>
2024-01-13 10:21:21 -05:00
quobix
d7c6474908 Bumped last line of coverage
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
202ae3365a updated coverage for timeout path lookup
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
15c53c1c2b Updated coverage
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
3263aeacbd Fixed borked tests
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
a53b3f8a13 tweak for visual clarity
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
cbdaac7374 cleaned up path handling a little
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
ee50403678 added circular trap, models cannot resolve circular refs
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
a16ff8f916 added some debug logging
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
5c04bb1494 Added root node into all low level models.
Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
63354654bf added in keynode support
soemthing that has been waiting to be filled in for some time.

Signed-off-by: quobix <dave@quobix.com>
2024-01-04 17:08:08 -05:00
quobix
08571b7693 Removed JsonParsingChannel
It does no good to anyone, anywhere and is creating race conditions when using the stack in a multi-tenant fashion.

Signed-off-by: quobix <dave@quobix.com>
2023-12-20 13:08:51 -05:00
quobix
bc040de300 fixed formatting
Signed-off-by: quobix <dave@quobix.com>
2023-12-18 16:11:59 -05:00
quobix
961dca7ea0 added test for schema type
Signed-off-by: quobix <dave@quobix.com>
2023-12-18 16:11:59 -05:00
quobix
0b7f809ac6 Added in high level schema type ref #215
Missed capturing the high level schema. Added test to document to capture use case permanently.

Signed-off-by: quobix <dave@quobix.com>
2023-12-18 16:11:59 -05:00
quobix
9cf06d3986 Fixed glitch reported by #219
Context was not being carried through correctly when resolving using `Schema()` and using exploded files.

Signed-off-by: quobix <dave@quobix.com>
2023-12-18 09:51:18 -05:00
Tristan Cartledge
e4a6c6516e chore: add more test coverage 2023-12-14 17:55:51 +00:00
Tristan Cartledge
a08b859904 chore: add more test coverage 2023-12-14 16:46:34 +00:00
Tristan Cartledge
0119853344 chore: add more test coverage 2023-12-14 14:46:20 +00:00
Tristan Cartledge
eec2dfa29d chore: add more test coverage 2023-12-14 13:10:46 +00:00
Tristan Cartledge
80177d9be7 chore: add more test coverage 2023-12-14 13:00:21 +00:00
Tristan Cartledge
212724df2d chore: some cleanup 2023-12-14 12:30:27 +00:00
Tristan Cartledge
41557cebcb cleanup: add sync version of ExtractSpecInfoWithDocumentCheck 2023-12-07 12:57:46 +00:00
Tristan Cartledge
fac9a4b3b1 fix: attempted fix to infinite yaml parsing bug 2023-12-07 11:34:36 +00:00
Tristan Cartledge
eb0b10cbb6 fix: to callback path items ref issue 2023-12-04 17:50:44 +00:00
Tristan Cartledge
69ba5b875a feat: add ordered json 2023-12-03 22:28:15 +00:00
Tristan Cartledge
a1bc5275ac Merge branch 'main' into ordered-libopenapi 2023-12-03 21:09:28 +00:00
Tristan Cartledge
e6afbe2af0 fix: boost coverage 2023-12-03 21:07:42 +00:00
Tristan Cartledge
d56bc91272 fix: boost coverage 2023-12-03 20:55:30 +00:00
quobix
7a5a4bcb2d Tuned circular reference handling
stopped rolodex looking up root file, looking in components schemas for a reference also. Dropped stripe circular refs down by one. seems to be catching the duplicate now.

Signed-off-by: quobix <dave@quobix.com>
2023-12-03 15:54:20 -05:00