Commit Graph

287 Commits

Author SHA1 Message Date
Emilien Puget
cbe1201cbd removed golang x package in favour of the std lib 2024-07-08 10:13:23 -04:00
Martins Irbe
711da3bd46 Pin DigitalOcean spec index test to a specific commit hash 2024-05-24 10:32:43 -04:00
quobix
e4b7bf52d2 fixed test for updated ds values 2024-05-17 17:19:46 -04:00
Marcel Boehm
3ce2494dad Pin digital ocean commit in tests 2024-05-08 12:58:06 -04:00
Tristan Cartledge
9d1ca6f541 fix: issue-280 Index.GetAllSchemas() regression in values returned 2024-04-30 09:09:41 -04:00
quobix
18a817b89e Added test in resolver for #481 2024-04-21 09:10:53 -04:00
quobix
7e87545f8a Added test for #481 2024-04-21 09:10:53 -04:00
quobix
1e22e0233b Fixes https://github.com/daveshanley/vacuum/issues/447 2024-04-21 09:10:53 -04:00
quobix
ac4b6ecd31 Rresolved issue https://github.com/daveshanley/vacuum/issues/481
Ignore array values defined as ‘$ref’ they are invalid to lookup.
2024-04-21 09:10:53 -04:00
quobix
099d4b324a removed untestable code 2024-04-19 06:45:19 -04:00
quobix
0766319581 fixed windows build 2024-04-19 06:45:19 -04:00
quobix
5649e798f0 resolved issue #259 2024-04-19 06:45:19 -04:00
quobix
fc6f12e6ca updated digitial ocean tests 2024-04-19 06:45:19 -04:00
quobix
fcc5355a9b Addressed issue #269
Regression undone
2024-04-19 06:45:19 -04:00
Emilien Puget
7439d52dc7 update digital ocean tests 2024-04-07 14:20:38 -04:00
quobix
40b16b3f76 Resolves issue https://github.com/pb33f/libopenapi/issues/256
The depth was being artificially inflated with highly complex recursive designs, this fixes the depth counter permanently.

Signed-off-by: quobix <dave@quobix.com>
2024-02-21 08:27:39 -05:00
quobix
f32dd873fd added more coverage
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
7119b51336 Cleaned up coverage
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
79d49faf70 Addressed https://github.com/daveshanley/vacuum/issues/459
Signed-off-by: quobix <dave@quobix.com>
2024-02-20 13:34:39 -05:00
quobix
3d5ab30755 resolver hits are different between load on CPU runs, with no extra value in output.
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
603865df9f removed panic
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
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
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
ca74e83a82 cleaned up some dead code!
Signed-off-by: quobix <dave@quobix.com>
2024-02-09 10:10:15 -05:00
quobix
6c8e03d36f Resolution for https://github.com/pb33f/libopenapi/issues/248
A new codepath created a double dip into the index, which skews the working path. A short circuit is required, and a new block of code catches it.

Signed-off-by: quobix <dave@quobix.com>
2024-02-09 10:10:15 -05:00
quobix
0eea21b150 added parent node to model for references.
Signed-off-by: quobix <dave@quobix.com>
2024-02-08 10:39:02 -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
561396d85d fixed locked remote loader
This could be the last one!

Signed-off-by: quobix <dave@quobix.com>
2024-02-06 22:13:41 -05:00
quobix
9db2900c16 Reworked logic to check extensions were not caught either.
Signed-off-by: quobix <dave@quobix.com>
2024-02-06 22:13:41 -05:00
quobix
103f2dfb0b Addressed https://github.com/daveshanley/vacuum/issues/390
And https://github.com/daveshanley/vacuum/issues/446

Signed-off-by: quobix <dave@quobix.com>
2024-02-06 22:13:41 -05:00
quobix
e3659a4bbe Addressed issue #240
Not sure why I built the original code the way it was, but it’s now a simplified query without stripping out, or manipulating the path in anyway, the rest of the code that follows after handles the query correctly.

Signed-off-by: quobix <dave@quobix.com>
2024-02-03 10:33:36 -07:00
quobix
a6c70d56e2 deleted code that should not exist.
Signed-off-by: quobix <dave@quobix.com>
2024-02-03 10:33:36 -07:00
quobix
8fe463a356 bumped coverage
Signed-off-by: quobix <dave@quobix.com>
2024-02-03 10:33:36 -07:00
quobix
1bf4bc9449 addressed test coverage
Signed-off-by: quobix <dave@quobix.com>
2024-02-03 10:33:36 -07:00
quobix
4a9f048ebe cleaned up remote file loader tests
The remote file loader is no longer going to care about anything other that explicit http links, trying to figure out where things should be loaded form using an overridden basepath and host is too complex of a usecase that I cannot be sure even exists.

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
c55527066a Addressed invalid polymorphic circular reference issue.
If a polymorphic type was used incorrectly (as a map and not an array) then the logic was getting a little upset. This fixes that issue and adds some tests to validate correct handling.

Signed-off-by: quobix <dave@quobix.com>
2024-01-30 16:44:06 -08:00
quobix
8825f5e328 Added correct handling of schema example rendering
reported in https://github.com/pb33f/wiretap/issues/84

Signed-off-by: quobix <dave@quobix.com>
2024-01-27 14:09:41 -05:00
Ilja Lapkovskis
3257a82791 Files were changed in f56cdeae9e without adjusting expected size. 2024-01-26 06:20:29 -05:00
Ilja Lapkovskis
b01b967433 Fix issue with non-working IgnorePoly flag. 2024-01-26 06:20:29 -05:00
quobix
e0f0f387bd resolved build issues
Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
2448d43902 added length check to solve #217
Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
6c27c47caf updated coverage
Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -05:00
quobix
77bb057f8c Added more test coverage
Signed-off-by: quobix <dave@quobix.com>
2024-01-18 15:11:39 -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