Repository navigation
Inline Skates
Pre-release
Pre-release
Big thanks to @nexon for jumping in and fixing a bug related to dereferencing callbacks within operations!
What's Changed
- fix double-validation error reporting (#309)
- Validation error improvements (#308)
- Support JSON Schema
const. (#310) - Dereference Links (#311)
- Refactor vendor extensions on JSONSchema (#312)
- Dereference Callbacks (#314)
New Contributors
Noteworthy Differences
- Dereferenced JSON Schemas now have Vendor Extension support (only OpenAPIKit module, not OpenAPIKit30).
Links andCallbacksMaps are now dereferenced when calling thedereferenced(in:)andlocallyDereferenced()methods.- JSON Schemas now support
const(which is decoded as a single entry in theJSONSchematype'sCoreContext'sallowedValuesarray). (only OpenAPIKit, not OpenAPIKit30).
Breaking Changes
JSONSchema's initializers no longer takevendorExtensions; instead, use the.with(vendorExtensions:)function to add vendor extensions to a schema or build the vendor extensions into the schema'sCoreContextto begin with. (only OpenAPIKit module, not OpenAPIKit30).- The
DereferencedOperationtype'scallbacksproperty is now anOpenAPI.DereferencedCallbacksMapinstead of anOpenAPI.CallbacksMap. - The
DereferencedResponsetype'slinksproperty is now anOrderedDictionary<String, OpenAPI.Link>instead of anOpenAPI.Link.Map. - When a
JSONSchemaonly has oneallowedValue, it will now be encoded asconstrather thanenum. (only OpenAPIKit module, not OpenAPIKit30). - The
JSONSchematype'scoreContextaccessor now gives a non-optional value because all cases have aCoreContext. (only OpenAPIKit module, not OpenAPIKit30).
Full Changelog: 3.0.0-beta.4...3.0.0-beta.5