Patterns where a specific anyOf is used, such as the following, can be expressed by removing the constraint and embedding the Enum type expression in the model.
public enum KnownKind: String, Codable, Equatable, CaseIterable {
case asinus = "asinus"
case hemippus = "hemippus"
case hemionus = "hemionus"
case kulan = "kulan"
case onager = "onager"
case polyodon = "polyodon"
case kiang = "kiang"
case holdereri = "holdereri"
}
public var knownKind: String
Concept
Patterns where a specific anyOf is used, such as the following, can be expressed by removing the constraint and embedding the Enum type expression in the model.
to