Commit Graph

8 Commits

Author SHA1 Message Date
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
b2c7faa7ae (fix): Addressed incorrect v3 high Document issue with security #20 **breaking change**
The v3 high level `Document` did not correctly implement `security` as highlighted by issue #20. This has been resolved, but it creates a breaking change, which is why we need to bump to v0.3.0.

Signed-off-by: Dave Shanley <dave@quobix.com>
2022-11-30 10:26:26 -05:00
Dave Shanley
42a2c6b90f (feat): Added GetOperations to v3 and v2 PathItem #19
high level models now have a `GetOperations() map[string]*Operation` method available on `PathItem`.
Requested by @TristanSpeakEasy in #19

gofmt is doing some strange things, must be a mac/windows issue as I swap machines about.
2022-11-29 15:34:49 -05:00
Dave Shanley
e1dd606c69 (feat): Circular / resolving errors returned with document creation. #18
Tristan made a good point, part of the doc building process performs a resolving check and circular reference check, which is ignored by the returned errors. So resolving errors are now unpacked into standard errors and returned. Not sure why gofmt has shifted everything around however.
2022-11-29 13:51:05 -05:00
Dave Shanley
d27e66ff3d Refactored SecurityRequirement **breaking change**
The v3 model is wrong and out of sync with the spec. It's been corrected, so the v2 and v2 model for SecurityRequirement have been collapsed down into a base model., they are the same data structures. This has allowed me to delete the complexity of sharing two different models for the same structure, by unifying the model correctly. I am not sure why I decided to change the v3 model, oh well, its been corrected. Long live swagger!
2022-11-18 11:00:34 -05:00
Dave Shanley
e80b640627 Added support for 3.1 docs and variations, as well as removed duplicated descriptions from sample spec. 2022-09-26 15:58:32 -04:00
Dave Shanley
cbce025d6c More docs going in, Added README details.
still lots to do, a long way to go, but it's starting to take shape.
2022-09-16 10:44:30 -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