Commit Graph

18 Commits

Author SHA1 Message Date
quobix
f56cdeae9e Tuned up local file handling and cleaned things up
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
7d63fe3262 Added new node map capability
Signed-off-by: quobix <dave@quobix.com>
2023-11-25 10:10:51 -05:00
quobix
53a46f4c60 Added SchemaProxy mutex #163
Rendering causes bits to be set on structs in the model. Concurrency causes race issues with reading a writing of these bits, as there is no locking in the model.

Until now. locking prevents concurrent renders that use a shared model from conflicting with one another.

Addresses #163 and https://github.com/pb33f/libopenapi-validator/issues/23

Signed-off-by: quobix <dave@quobix.com>
2023-09-18 17:50:33 -04:00
Dave Shanley
3055711f24 Added support for libopenapi-validator and bumped coverage.
Non breaking changes add support for the new `libopenapi-validator` module.

Signed-off-by: Dave Shanley <dave@quobix.com>
2023-04-22 09:50:44 -04:00
Dave Shanley
10374e801b Adding support for libopenapi-validator
Signed-off-by: Dave Shanley <dave@quobix.com>
2023-04-22 09:50:44 -04:00
Dave Shanley
c549d9f62d Updated readme with new docs link
Added in some new helper methods for building out new models. More details in the docs. Added another example.
2023-03-26 06:10:31 -04:00
Dave Shanley
0e8ae7c548 rendering complex additionalProperties in place.
slices of maps were not rendered properly. Now corrected, coverage continues to rise, refactoring node generation into utils package.
2023-03-26 06:10:31 -04:00
Dave Shanley
0e44dc90b5 Working through coverage on node builder. 2023-03-26 06:10:31 -04:00
Dave Shanley
5d7f22fca7 first level testing for rending v3 model in place.
Now onto some hardening tests, lets re-render each spec after reading to check for failures.
2023-03-26 06:10:31 -04:00
Dave Shanley
3101a7c9b7 Large update to support v3 rendering. 2023-03-26 06:10:31 -04:00
Dave Shanley
3544ed0303 Churning through v3 models now.
mutations everywhere, for everyone!
2023-03-26 06:10:31 -04:00
Dave Shanley
da17b8df89 Tackled the boss, schemas! now mutable.
A tricky one, because of the complexity, still working through edge cases and variations, but so far, operating correctly!
2023-03-26 06:10:31 -04:00
Dave Shanley
cbfb051a92 (feat): Schema now has pointer back to SchemaProxy #29
The 'owning' `SchemaProxy` is now trackable back from a `Schema` part of the conversations happening on #29
2022-12-05 12:18:10 -05:00
Dave Shanley
ee93996ff2 (feat): added new BuildSchema method to suppliment Schema #31
A new `BuildSchema()` method does the same thing as `Schema()` but simply returns the build error along with the schema, so error checking can be performed inline when required.

Signed-off-by: Dave Shanley <dave@quobix.com>
2022-12-01 11:38:52 -05:00
Travis Newhouse
7d68d4f589 Add GoLow method to high-level SchemaProxy
A client of high-level SchemaProxy may want to know whether a schema
is a reference and the name of the reference.  This information is
available from methods GetSchemaReference() and IsSchemaReference()
in low-level SchemaProxy.  Provide a GoLow() method to retrieve the
low-level SchemaProxy for a high-level SchemaProxy.
2022-10-25 12:55:22 -07:00
Dave Shanley
849074d0bc High-level base documentation is complete.
Examples and every model completed, 1/6th of the way through models.
2022-09-15 11:13:54 -04:00
Dave Shanley
bfb312af15 Fleshing out high level model for v2 (swagger) 2022-09-09 12:22:21 -04:00
Dave Shanley
2c4177e97a Swagger 2.0 high level model going in now
Shifting a few high level models around that are also shared. now it's just a churn game to flesh the high level model and test it up.
2022-09-09 07:08:52 -04:00