978 Commits

Author SHA1 Message Date
quobix
8e9d97c5d5 Fixed off by one error
Saw this blow up in the platform today. Silly me.
2024-09-11 16:31:35 +01:00
quobix
efe5523222 Update datamodel/low/v3/server_test.go 2024-09-11 16:19:35 +01:00
Gefferson Ferraz
24aa1c8304 feat: add server variable extensions 2024-09-11 16:19:35 +01:00
quobix
ac1d206f01 fixed bad code. 2024-09-09 23:57:07 +01:00
quobix
244ce963c8 bumped coverage 2024-09-09 23:57:07 +01:00
quobix
c0e69a4414 bumped coverage 2024-09-09 23:57:07 +01:00
quobix
e7e87afa9c updated coverage 2024-09-09 23:57:07 +01:00
quobix
82bea5219f removed dead code 2024-09-09 23:57:07 +01:00
quobix
708c439017 Locked in release for DO spec.
stupid thing is throwing 404’s today for the latest release. Screw it, lock it down!
2024-09-09 23:57:07 +01:00
quobix
918335a99d bumped deps. 2024-09-09 23:57:07 +01:00
quobix
0200809765 Added missing extensions to contact and license
Not sure how I missed these, however, better late than never.
2024-09-09 23:57:07 +01:00
quobix
3e0da6d0b7 removed error checking for URL and identifier.
This was stupid and I regret doing this. It causes tons of issues downstream.
2024-09-09 23:57:07 +01:00
quobix
69f408bd8e remove ToLower function call
The function uses `equalFold` so this call is wasteful and slow.
2024-09-09 23:57:07 +01:00
quobix
781ec3c189 Added all component schema to prevent allocations.
This function runs a lot and `syncMapToMap` is slow. The function is idepmotent so a cache prevents a lot of un-nessecary burn.
2024-09-09 23:57:07 +01:00
quobix
d6e810ee8e Rebuilt convert component id to path function
This function was re-written in order to fix a number of performance issues with the original implementation.

Allocations were high and this function is used a lot, this new implementation is much
lighter on string allocations by using a string builder.
2024-09-09 23:57:07 +01:00
Calvin Lobo
9d5251a55e Added more docstrings 2024-09-09 23:56:54 +01:00
Calvin Lobo
c8186468ae Fixed other references to "root.yaml" 2024-09-09 23:56:54 +01:00
Calvin Lobo
07ed25a870 Improved code coverage and fixed nil error when copying references 2024-09-09 23:56:54 +01:00
Calvin Lobo
2fc6ac8a84 Set indexConfig.SpecAbsolutePath to "root.yaml" (theoretical root) when the spec's root does not exist on the filesystem (either read from remote URL or []byte) 2024-09-09 23:56:54 +01:00
Calvin Lobo
546778c93e Added GetAllReferences() and GetAllMappedReferences() methods to Rolodex 2024-09-09 23:56:54 +01:00
Calvin Lobo
9ab482ac9b Instead of using "root.yaml" as a theoretical root, use the real filename of the root spec (often openapi.yaml). This fixes issues with resolving references in rules such as unsused-components. 2024-09-09 23:56:54 +01:00
Calvin Lobo
7eb70792a3 Improved test coverage for rolodex.GetFullLineCount() 2024-08-28 14:59:10 +01:00
Calvin Lobo
43144dec72 Added GetFullLineCount() to the Rolodex 2024-08-28 14:59:10 +01:00
Tristan Cartledge
49a292152b chore: update orderedmap 2024-08-26 20:42:40 +01:00
Tristan Cartledge
59e7665d06 chore: upgrade go version 2024-08-26 20:42:40 +01:00
Tristan Cartledge
dc337f8acb chore: increase coverage 2024-08-26 20:42:40 +01:00
Tristan Cartledge
888f88c3ba chore: increase coverage 2024-08-26 20:42:40 +01:00
Tristan Cartledge
c46147cd47 fix: update test to confirm fix for GetKeys() 2024-08-26 20:42:40 +01:00
Tristan Cartledge
161a41f73b chore: update to use iterators on orderedmaps 2024-08-26 20:42:40 +01:00
quobix
c3eb16d4e4 Added more tests. 2024-08-07 14:55:54 -04:00
quobix
07ff746732 added path items to components.
I don’t know how I missed this.

I don’t know how someone has not complained about it.
2024-08-07 14:55:54 -04:00
Tristan Cartledge
fb545f9584 fix: add more coverage 2024-08-07 14:45:34 -04:00
Tristan Cartledge
0cbf094245 fix: improved handling of complex yaml in YAMLNodeToJSON 2024-08-07 14:45:34 -04:00
quobix
61b8a2f934 fixed path node extraction.
This one of the exceptions.
2024-08-05 15:01:37 -04:00
quobix
8f9eb659c2 Added some nill checks.
In case, you never know.
2024-08-05 15:01:37 -04:00
quobix
82f580042d another tiny cov bumpy 2024-08-05 09:29:07 -04:00
quobix
527d3cdc81 more ye olde time coverage for ye tests. 2024-08-05 09:29:07 -04:00
quobix
4a72248424 fixed ye olde tests 2024-08-05 09:29:07 -04:00
quobix
7bb16cdc04 ye olde code bump 2024-08-05 09:29:07 -04:00
quobix
14ae352297 more coverage bumps 2024-08-05 09:29:07 -04:00
quobix
d09ad8e050 bumped coverage 2024-08-05 09:29:07 -04:00
quobix
6be80a5d07 bumped coverage 2024-08-05 09:29:07 -04:00
quobix
a37f50c515 bumped coverage 2024-08-05 09:29:07 -04:00
quobix
631e4a8478 Improving coverage 2024-08-05 09:29:07 -04:00
quobix
c80e928e8b added more coverage 2024-08-05 09:29:07 -04:00
quobix
4949d03e5c bumped coverage 2024-08-05 09:29:07 -04:00
quobix
70f406b6cf Added NodeMap to all low level objects.
this sync map tracks all the nodes that apply to this object.
2024-08-05 09:29:07 -04:00
quobix
31ed123abd Added a back tick for consistent rendering 2024-08-05 09:29:07 -04:00
Tristan Cartledge
0a98b84ca7 fix: fixed extraction of top level named examples to not extract schema level examples 2024-07-30 10:53:36 -04:00
Nolan Di Mare Sullivan
f151589f41 Update Speakeasy URL
Speakeasy is now found at speakeasy.com!
2024-07-30 10:51:57 -04:00