Leave A Message
Pre-release
Pre-release
mattpolzin
released this
26 Apr 04:24
·
53 commits
to release/4_0
since this release
What's Changed
- Port of
ExternallyDereferenceable
toOpenAPIKit30
(#373) - Support arbitrary messaging from external loaders (#374)
Breaking Changes
- The Document
externallyDereference()
function's first argument label has been renamed fromin
towith
. This fits the language better: "dereference a document with a particular Loader." - The
ExternalLoader
protocol'sload()
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 toVoid
and always return an empty array. The new return is there to facilitate you passing information back to yourself from theload()
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