Commit Graph

36 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
f27d57aab0 Update test - disable required check to render all examples
Test default behaviour when required check is not disabled
2024-05-24 15:23:18 -04:00
Martins Irbe
3eaa7bf5ea Add disable required check func to mock gen 2024-05-24 15:23:18 -04:00
Martins Irbe
c1bba8ae5a Test rendering of examples for all properties in the schema 2024-05-24 15:23:18 -04:00
quobix
8a1d3ae696 more test coverage and filling gaps on schema renderer 2024-05-01 13:17:56 -04:00
quobix
7f945e35c4 tuning example rendering 2024-05-01 13:17:56 -04:00
quobix
2464753173 Adding more schema rendering tests 2024-05-01 13:17:56 -04:00
quobix
f636dc939b Added support for decimal and bigint format schema rendering
Want big numbers? you got it. https://github.com/pb33f/wiretap/issues/93
2024-05-01 13:17:56 -04:00
quobix
2999542014 Added item example rendering to schema renderer
Addresses https://github.com/pb33f/wiretap/issues/90
2024-05-01 13:17:56 -04: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
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
Tristan Cartledge
13b97f84db chore: add more test coverage 2023-12-14 17:42:32 +00:00
Tristan Cartledge
00e1544abd Merge branch 'main' into ordered-libopenapi 2023-12-01 17:57:05 +00:00
Tristan Cartledge
a4ad09aab3 fix: continued moving everything to orderedmaps plus cleaned up most the tests 2023-12-01 17:37:07 +00:00
quobix
ce1b9f2399 added test for nill mock generator item
Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
quobix
396b4509b9 added nil check to mock generator
stops it blowing up when there is no mock to render.

Signed-off-by: quobix <dave@quobix.com>
2023-11-30 07:20:19 -05:00
Tristan Cartledge
2de65e4ca0 Merge branch 'main' into Baliedge/PIP-2552-consistent-ordering 2023-11-27 12:06:39 +00:00
quobix
0b1a147a26 Add ‘disable required check’ switch on renderer #200
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
d30ac24db9 All tests pass! logs of tests fixed and tuning API for high level
Document configuration has been simplified, no more need for AllowRemote stuff in the document configuration, it’s assumed by setting the baseURL or the basePath.

Signed-off-by: quobix <dave@quobix.com>
2023-10-24 10:24:19 -04:00
Nicholas Jackson
4847c4b296 refactor: remove single iteration loop
Simplify code by taking the first element instead of
performing a single-iteration loop.
2023-10-08 12:24:20 -04:00
Shawn Poulson
d10f20dccb Fix tests. 2023-09-25 10:55:03 -04:00
Shawn Poulson
c225546b04 Fixes to tests. 2023-09-25 09:47:50 -04:00
Shawn Poulson
f389fedadd Monster refactor of map to orderedmap.Map data type. 2023-09-25 08:59:42 -04:00
quobix
43bf162e0c Added new Render method to top level document.
Like `RenderAndReload` this method will render / print out the document, however it won’t read it back in and reload the model from the ground up. This is a non-destructive method that does not reload the model from the rendered document.

If you don’t use the low model or you don’t care that the high level model and low-level models are out of sync? No problem. Otherwise keep this in mind that the low level model will only represent the original un-mutated document, as will the index.

Signed-off-by: quobix <dave@quobix.com>
2023-09-14 07:30:03 -04:00
Quobix
1795bb502a Refactored mock renderer types
makes more sense when using as an API.

Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
5faa24e333 Added docs, more tests and cleanup.
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
2ddc147906 Hardening mock generator with a few more tests
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
9fb09f3a42 Adding in some mock examples
Noticed that I had missed something in the burgershop. Now that we can ‘see’ the spec, it’s going to open up a whole ton of new capabilities.

Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
8ae4603824 Fixed mock test
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
2269130610 Added tests for mock generator and tuned schema renderer
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
3df73aa18a Bump coverage
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
a8e32c4d28 Renamed schema_renderer and added more tests
Ensures coverage across the board

Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
3cdaa4d745 More dictionary test fixes
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
829a80a74a fixing failing test, accomodating for missing dict in runner image
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
13cd7edaeb fixed race conditions in definitions
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00
Quobix
80ff665a08 Adding in new engine for rendering examples #107
Signed-off-by: Quobix <dave@quobix.com>
2023-09-01 06:00:03 -04:00