HeterogeneousArrayResponse
public struct HeterogeneousArrayResponse : Array
extension HeterogeneousArrayResponse: Decodable
A list of Contentful entries that have been mapped to types conforming to EntryDecodable
instances.
A HeterogeneousArrayResponse
respresents a heterogeneous collection of EntryDecodable
being returned,
for instance, if hitting the base /entries
endpoint with no additional query parameters. If there is no
user-defined type for a particular entry, that entry will not be deserialized at all. It is up to you to
introspect the type of each element in the items array to handle the response data properly.
See: https://www.contentful.com/developers/docs/references/content-delivery-api/#/introduction/collection-resources-and-pagination
-
The resources which are part of the given array response.
Declaration
Swift
public let items: [EntryDecodable]
-
The maximum number of resources originally requested
Declaration
Swift
public let limit: UInt
-
The number of elements skipped when performing the request.
Declaration
Swift
public let skip: UInt
-
The total number of resources which matched the original request.
Declaration
Swift
public let total: UInt
-
An array of errors, or partial errors, which describe links which were returned in the response that cannot be resolved.
Declaration
Swift
public let errors: [ArrayResponseError]?
-
Access to assets includes
Declaration
Swift
public var includedAssets: [Asset]? { get }
-
Access to entries includes
Declaration
Swift
public var includedEntries: [EntryDecodable]? { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws