-
The tag name this rule applies to.
Declaration
Swift
public let tag: Tag.Name
-
The regex pattern used to resolve this rule.
Declaration
Swift
public var pattern: String { get }
-
Create a rule with the specified tag name and regex pattern.
Throws
Throws an error if the regular expression pattern is invalid.
Declaration
Swift
public init(_ tag: Tag.Name, _ pattern: String) throws
Parameters
tag
The tag name this rule should apply to.
pattern
The regex pattern used to resolve this rule.
-
Default bool resolver rule.
Declaration
Swift
public static let bool: Resolver.Rule
-
Default int resolver rule.
Declaration
Swift
public static let int: Resolver.Rule
-
Default float resolver rule.
Declaration
Swift
public static let float: Resolver.Rule
-
Default merge resolver rule.
Declaration
Swift
public static let merge: Resolver.Rule
-
Default null resolver rule.
Declaration
Swift
public static let null: Resolver.Rule
-
Default timestamp resolver rule.
Declaration
Swift
public static let timestamp: Resolver.Rule
-
Default value resolver rule.
Declaration
Swift
public static let value: Resolver.Rule