Tristan Cartledge
99bf12c1c7
feat: add attribute to schema model
2023-04-18 05:22:49 -04:00
Dave Shanley
bc5a020c7a
Hardening is uncovering a few rough edges.
...
Some missing bits here and there are being picked up by the diff engine in tests. Working through each rough edge, one at a time.
2023-03-26 06:10:31 -04:00
Dave Shanley
5189eadddc
Large refactor and addedGetAllChanges to each change
...
tons of updates, so many things.
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
3101a7c9b7
Large update to support v3 rendering.
2023-03-26 06:10:31 -04:00
Dave Shanley
38064123ed
Working through complex rendering edgecases.
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
Daniel G. Taylor
de1a42c72f
fix: DynamicValue in high model schema missing N value
2023-01-21 06:05:23 -05:00
Tristan Cartledge
5f92de63a4
fix: remove debug logging
2023-01-10 17:39:03 -05:00
Tristan Cartledge
52f9868d96
fix: fix handling of ordered arrays when processing them async
2023-01-10 17:39:03 -05:00
Dave Shanley
64887b53b1
(fix): fixed low-level *SchemaProxy high-level additionalProperties #29
...
When `additionalProperties` is a map, it's treated as a SchemaProxy in the low-level model. This proxy was being incorrectly lifted up into the high-model.
2022-12-12 09:31:35 -05:00
Dave Shanley
3fd088b217
Increased coverage for model back to 100%
2022-12-09 07:06:34 -05:00
Dave Shanley
b3f0a0b1ae
Working on model changes to resolve #38 and #28 **breaking change**
...
Also adding in other properties to schema that are missing. Test coverage still needs improving and this is a breaking change to low and high models.
2022-12-09 07:06:34 -05:00
Dave Shanley
d51d2fcd27
Added contains, minContains and maxContains to schema #28
...
Added support for missing 3.1 schema properties, however it does not cover the `boolean` case
2022-12-09 07:06:34 -05: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
16c841fc30
(fix): ReadOnly and WriteOnly de-pointed #30
...
@TristanSpeakEasy: "ReadOnly/WriteOnly are *bool but could be simplified to bool as they default to false always. It is always a bit awkward in Golang to work with pointers and if possible its great to avoid them especially when the absence of a value in the yaml/json doc defaults to false"
Done.
2022-12-01 08:48:37 -05:00
Daniel G. Taylor
f72cd13448
fix(high): load schema.Examples into []any
2022-11-29 13:59:52 -05:00
Daniel G. Taylor
f32132fbc9
fix: conditionally set min/max/multiple
2022-11-29 09:29:07 -05:00
Dave Shanley
c4b6e68197
Added prefixItems support to Schema. Fixes #2
...
prefixItems is a property of JSONSchema and supported by OpenAPI 3.1, this update adds support for `prefixItems` in low and high models. It's essentially a copy of the `items` property, but allows seperate configuration of both, without combining them and muddling things for clarity.
Signed-off-by: Dave Shanley <dave@quobix.com >
2022-11-21 09:44:51 -05:00
Dave Shanley
44b219a023
Fixed resolving bug with polymorphic schemas.
...
Multiple polymorphic, deeply embedded schemas cause resolving issues as a channel waits forever due to a counting issue.
This has been resolved.
Signed-off-by: Dave Shanley <dshanley@splunk.com >
2022-11-11 13:07:38 -05:00
Dave Shanley
54d924d46d
Enums in Schema are now interface{} types in datamodel #1
...
Addressing issues #1 , Enums can be anything and should not be consideded plain strings.
2022-10-27 06:51:37 -04:00
Dave Shanley
54316b4a00
Moved primitives to pointers in high-level schema.
...
A feature request from Travis Newhouse to make it easier to know which primitives have been set, and which have not. defaulting everything to 0 or false just doesn't work so well.
2022-10-25 07:23:02 -04: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
19269af7d7
Added support for 3.1 updates to schema
2022-09-14 11:16:16 -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