Commit Graph

32 Commits

Author SHA1 Message Date
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
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
93c5b25d6c Added GetRootNode() and GetKeyNode methods to low model. 2024-07-08 10:14:32 -04: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
Tristan Cartledge
a4ad09aab3 fix: continued moving everything to orderedmaps plus cleaned up most the tests 2023-12-01 17:37:07 +00:00
Tristan Cartledge
2de65e4ca0 Merge branch 'main' into Baliedge/PIP-2552-consistent-ordering 2023-11-27 12:06:39 +00:00
quobix
8717b3cd33 An enormous amount of surgery on the low level model.
Every `Build()` method now requires a `context.Context`. This is so the rolodex knows where to resolve from when locating relative links. Without knowing where we are, there is no way to resolve anything. This new mechanism allows the model to recurse across as many files as required to locate references, without loosing track of where we are in the process.

Signed-off-by: quobix <dave@quobix.com>
2023-10-23 15:04:34 -04:00
Shawn Poulson
663cb90b67 Improve coverage. Simplify error handling. 2023-10-05 09:30:28 -04:00
Shawn Poulson
e2da992488 Tidy code. 2023-10-05 09:30:28 -04:00
Shawn Poulson
dc4670028c Fix compatibility issue with Go 1.19. 2023-10-05 09:30:28 -04:00
Shawn Poulson
9562230084 Tidy code. 2023-10-05 09:30:28 -04:00
Shawn Poulson
eb84284264 Implement TranslatePipeline() as generalized concurrent map iterator.
Integrate `TranslatePipeline()` into datamodel for schema components to replace specialized async logic.
2023-10-05 09:30:28 -04:00
Shawn Poulson
f389fedadd Monster refactor of map to orderedmap.Map data type. 2023-09-25 08:59:42 -04:00
Shawn Poulson
8b6ea5a979 Improve coverage. Simplify error handling. 2023-09-22 17:49:17 -04:00
Shawn Poulson
a9a28759a4 Tidy code. 2023-09-22 17:49:17 -04:00
Shawn Poulson
2321d26da6 Fix compatibility issue with Go 1.19. 2023-09-22 17:49:17 -04:00
Shawn Poulson
3512e706b4 Tidy code. 2023-09-22 17:49:17 -04:00
Shawn Poulson
a8cf9fdaa9 Implement TranslatePipeline() as generalized concurrent map iterator.
Integrate `TranslatePipeline()` into datamodel for schema components to replace specialized async logic.
2023-09-22 17:49:17 -04:00
Dmitry
6c24cd5940 Pass the key node 2023-08-25 09:51:57 -04:00
Dave Shanley
25d8de9b0e Added more support for YAML merge nodes, anchors and aliases
And added deeper support for Aliases. Also added in local file handling through renamed `FSHandler` configuration property for the index.

Also re-ran `go fmt`

Signed-off-by: Dave Shanley <dave@quobix.com>
2023-07-16 11:45:18 -04:00
Dave Shanley
c3cf5f1e38 Added support for unevaluatedProperties as Schema and bool #118
Also ran `gofmt` across the entire project. Things need cleaning up.

Signed-off-by: Dave Shanley <dave@quobix.com>
2023-06-17 14:12:27 -04:00
Dave Shanley
3101a7c9b7 Large update to support v3 rendering. 2023-03-26 06:10:31 -04:00
Dave Shanley
1974f63d70 (fix): X-' is a valid prefix for SecurityScheme` components. #54
Security schemes with a `X-` prefix were being seen mistakenly as extensions, because the key name was automatically set to lowercase, before a check.
2022-12-20 16:41:49 -05:00
Dave Shanley
c08dd591b2 (feat): Unpack extensions into complex function types #8
The more in-depth we use extensions, the more likely is is that we need custom extensions. New `UnpackExtensions` function in the high package makes this easy. Low level models have been updated to support feature fully and docs added in README and examples as well.

Signed-off-by: Dave Shanley <dave@quobix.com>
2022-12-02 11:15:44 -05:00
Dave Shanley
b510be3563 what-changed code in place.
Let the explosions begin!
2022-11-18 11:00:34 -05:00
Dave Shanley
a85445019d what-changed v3 document testing and fixes.
sending bolts of electricity through the entire stack is throwing errors here and there, simple null values that need checking, some forgotten has functions and what not. shaking out as many bad splices as possible as we reach for the summit.
2022-11-18 11:00:34 -05:00
Dave Shanley
59bf83c446 Supercharged test coverage back up to 99.9%
I can't test that one line in the index, so this will do.

Now to complete the document for what's changed.
2022-11-18 11:00:34 -05:00
Dave Shanley
12594fdf1c Components what-changed completed.
Now to move on to the document and finally some perform stress testing.

AND THEN! we're done with this MF. Jesus H Christ, what a mission.
2022-11-18 11:00:34 -05:00
Dave Shanley
f66c77ccb5 Working through components what-changed code.
Moved comparison function for map checking to be async, removed the untyped variation as it's no longer required. Getting prepared for tests
2022-11-18 11:00:34 -05:00
Dave Shanley
f9016b8414 Low-level docs for v3 model are now in place
5/6 of the way there!
2022-09-21 07:10:58 -04:00
Dave Shanley
3d5ecf0efb Refactored version directory names
3.0 and 2.0 do not work, there are multiple versions and anything with a period in it sucks from my point of view, v2 and v3 feel much better from a DX perspective.
2022-09-16 08:33:39 -04:00