-
Parses the input YAML string as an untyped dictionary.
Throws
Throws if the
yaml
string provided could not be parsed.Declaration
Swift
public static func parse(_ yaml: String, env: [String: String] = ProcessInfo.processInfo.environment) throws -> [String: Any]
Parameters
yaml
YAML-formatted string.
env
The environment to use to expand variables in the YAML.
Return Value
The parsed YAML as an untyped dictionary.