Commit Graph

501 Commits

Author SHA1 Message Date
quobix
b71e81e4c2 Added assertion for GetRootNode and GetKeyNode 2024-07-08 10:14:32 -04:00
quobix
93c5b25d6c Added GetRootNode() and GetKeyNode methods to low model. 2024-07-08 10:14:32 -04:00
Thomas Rooney
2277a2030a chore: codecov 2024-07-08 10:13:49 -04:00
Thomas Rooney
626bca5ee4 fix: render empty scalar nodes 2024-07-08 10:13:49 -04:00
Emilien Puget
cbe1201cbd removed golang x package in favour of the std lib 2024-07-08 10:13:23 -04:00
quobix
382557c912 fixed borked test 2024-05-17 17:19:46 -04:00
quobix
a12d27baf1 added more tests and added another panic check to node builder. 2024-05-17 17:19:46 -04:00
quobix
7648bdd72a Added length check to prevent panic. 2024-05-17 17:19:46 -04:00
quobix
338eaa3dac Fixed spec format setting for 3.1 in SpecInfo 2024-05-17 17:19:46 -04:00
quobix
0d9b1906d1 Added MarshalJSON to high level schema.
When building the doctor and rending APIs, I realized that schemas were not being serialized properly when rendering JSON output, this change fixes that.
2024-05-11 14:50:14 -04:00
quobix
9eec2a4361 fixed a couple of comments 2024-05-11 14:50:14 -04:00
Kellen Hart
a4a9370db8 render empty oauth scopes
see https://github.com/pb33f/libopenapi/issues/289
2024-05-11 14:49:40 -04:00
Tristan Cartledge
6f277db292 fix: fixed MediaType example being populated from wrong source 2024-04-22 19:20:08 -04:00
quobix
a20a09710b bumped coverage 2024-04-19 06:45:19 -04:00
quobix
c26ecf478c Added test to render JSON error 2024-04-19 06:45:19 -04:00
quobix
38f1bb741c fixed borked test 2024-04-19 06:45:19 -04:00
quobix
1cc814411d addressed issue #264
Error was not being returned when rendering JSON
2024-04-19 06:45:19 -04:00
quobix
fc6f12e6ca updated digitial ocean tests 2024-04-19 06:45:19 -04:00
Emilien Puget
26e390b0f0 float format to not print !!float 2024-04-08 06:34:07 -04:00
quobix
94c06b1507 Adding a sleep to translate test
it randomly fails to hit a single line for `Done` in tests, so I am adding a sleep here to see if waiting for a second will allow every routine to exit correctly before the test exists. It feels like a race condition.

Signed-off-by: quobix <dave@quobix.com>
2024-02-21 08:27:39 -05:00
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