Skip to content

Inline Skates

Pre-release
Pre-release

Choose a tag to compare

@mattpolzin mattpolzin released this 13 Sep 03:06
beca680

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 and CallbacksMaps are now dereferenced when calling the dereferenced(in:) and locallyDereferenced() methods.
  • JSON Schemas now support const (which is decoded as a single entry in the JSONSchema type's CoreContext's allowedValues array). (only OpenAPIKit, not OpenAPIKit30).

Breaking Changes

  1. JSONSchema's initializers no longer take vendorExtensions; instead, use the .with(vendorExtensions:) function to add vendor extensions to a schema or build the vendor extensions into the schema's CoreContext to begin with. (only OpenAPIKit module, not OpenAPIKit30).
  2. The DereferencedOperation type's callbacks property is now an OpenAPI.DereferencedCallbacksMap instead of an OpenAPI.CallbacksMap.
  3. The DereferencedResponse type's links property is now an OrderedDictionary<String, OpenAPI.Link> instead of an OpenAPI.Link.Map.
  4. When a JSONSchema only has one allowedValue, it will now be encoded as const rather than enum. (only OpenAPIKit module, not OpenAPIKit30).
  5. The JSONSchema type's coreContext accessor now gives a non-optional value because all cases have a CoreContext. (only OpenAPIKit module, not OpenAPIKit30).

Full Changelog: 3.0.0-beta.4...3.0.0-beta.5