Commit Graph

11 Commits

Author SHA1 Message Date
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
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
Emilien Puget
c0385f2664 abort BundleBytes only when there is no document returned 2024-02-28 10:12:36 -08:00
Emilien Puget
d8d0930062 test case to cover panic 2024-02-28 10:12:36 -08:00
Emilien Puget
edf9c70336 tests 2024-02-28 10:12:36 -08:00
Emilien Puget
e3d9f70bec fix bundler panic when BuildV3Model fail 2024-02-28 10:12:36 -08:00
Matas Domarkas
afab8d890a [bundler] Add reference check against empty string
Depending on configuration, full path may or may not exist. It may be empty.

Co-authored-by: quobix <dave@quobix.com>
2024-01-27 14:08:52 -05:00
Matas Domarkas
db8338339c [bundler] Add exploded ref check against root document
Exploded ref check was matching against empty string,
however full definition consists of full path and
a fragment.
2024-01-27 14:08:52 -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