Skip to content

Commit 8aa1618

Browse files
committed
Add UUIDLike Type
1 parent efbb0d8 commit 8aa1618

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

model/contracts.smithy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ namespace equaliq
44

55
// Contract structures
66

7-
@pattern("^[A-Za-z0-9-]+$")
8-
string ContractId
7+
string ContractId with [UuidLikeMixin]
98

109
enum ContractStatus {
1110
PROCESSING = "processing"

model/equaliq.smithy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ structure PingOutput {
7171

7272
// Shared types used across operations - keep these in main file for reference
7373

74+
// Common patterns
75+
@mixin
76+
@pattern("^[A-Za-z0-9-]+$")
77+
string UuidLikeMixin
78+
7479
// Common structures
7580
document Document
7681
// Generics

model/profiles.smithy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ $version: "2"
33
namespace equaliq
44

55
// User profile operations and structures
6-
@pattern("^[A-Za-z0-9-]+$")
7-
string UserId
6+
string UserId with [UuidLikeMixin]
87

98
list UserIdList {
109
member: UserId

0 commit comments

Comments
 (0)