mattpolzin / OpenAPIKit

Codable Swift OpenAPI implementation.
MIT License
281 stars 35 forks source link

Bugfix/294 dereferencing callbacks #314

Closed nexon closed 11 months ago

nexon commented 11 months ago

In this PR I add the callbacks when dereferencing a document.

The approach that I took was basically defining DereferencedCallbacks & DereferencedCallbackMap And making OrderedDictionary conforming to LocallyDereferenceable So we can dereferencing Callbacks easily.

This also means that CallbackURL is now conforming to LocallyDereferenceable But basically return itself.

nexon commented 11 months ago

No problem! Happy to help. 😀