CodableArgument
public struct CodableArgument : Argument
Argument type to hold Codable
content. Currently intended for use with Gherkin data tables and data lists (unkeyed tables)
-
Name of the argument
Declaration
Swift
public let name: String?
-
Attempts to decode the data table as a
Decodable
type. This is a destructive method that will short-circuit if it fails to decode. Optionally will take a decoder with overridden decoding strategies.Declaration
Swift
public func get<T: Decodable>(_ type: T.Type, using decoder: JSONDecoder = JSONDecoder()) -> T