Skip to content

Leave A Message

Pre-release
Pre-release
Compare
Choose a tag to compare
@mattpolzin mattpolzin released this 26 Apr 04:24
· 53 commits to release/4_0 since this release

What's Changed

  • Port of ExternallyDereferenceable to OpenAPIKit30 (#373)
  • Support arbitrary messaging from external loaders (#374)

Breaking Changes

  • The Document externallyDereference() function's first argument label has been renamed from in to with. This fits the language better: "dereference a document with a particular Loader."
  • The ExternalLoader protocol's load() function needs to return an array of "messages" now. If you don't have use for these messages, you can set the type of the message to Void and always return an empty array. The new return is there to facilitate you passing information back to yourself from the load() function.

Big Picture

Now external loading (a.k.a. external dereferencing of JSON references) is supported by both modules of OpenAPIKit. Check out the README, OpenAPI.Document's externallyDereference() docs, and ExternalLoader docs.

Full Changelog: 4.0.0-alpha.4...4.0.0-alpha.5