Files
pkurchatov 149b80a37f Sendable DivData
commit_hash:ae183ed8d06f2c89c8693f59bedba49752638377
2025-01-16 16:25:07 +03:00

37 lines
849 B
Swift

// Generated code. Do not modify.
import CommonCore
import Foundation
import Serialization
public final class EntityWithRequiredProperty: Sendable {
public static let type: String = "entity_with_required_property"
public let property: Expression<String> // at least 1 char
public func resolveProperty(_ resolver: ExpressionResolver) -> String? {
resolver.resolveString(property)
}
static let propertyValidator: AnyValueValidator<String> =
makeStringValidator(minLength: 1)
init(
property: Expression<String>
) {
self.property = property
}
}
#if DEBUG
extension EntityWithRequiredProperty: Equatable {
public static func ==(lhs: EntityWithRequiredProperty, rhs: EntityWithRequiredProperty) -> Bool {
guard
lhs.property == rhs.property
else {
return false
}
return true
}
}
#endif