Skip to content

VendorExtendable

mattpolzin edited this page Jun 11, 2021 · 3 revisions

VendorExtendable

A VendorExtendable type is a type that supports arbitrary additions as long as those additions are keyed by strings starting with "x-" (e.g. "x-customThing").

public protocol VendorExtendable 

Requirements

VendorExtensions

typealias VendorExtensions = [String: AnyCodable]

vendorExtensions

Dictionary of vendor extensions.

var vendorExtensions: VendorExtensions 

These should be of the form: [ "x-extensionKey": <anything>] where the values are anything codable.

Types
Protocols
Global Functions
Extensions
Clone this wiki locally