Skip to content

Commit 8753899

Browse files
authored
Ensure defined locking strategies only (#47)
1 parent d326ccf commit 8753899

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

go/metalstack/api/v2/common.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/metalstack/api/v2/common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ message UpdateMeta {
154154
google.protobuf.Timestamp updated_at = 1;
155155

156156
// LockingStrategy to be used for this update request
157-
OptimisticLockingStrategy locking_strategy = 2;
157+
OptimisticLockingStrategy locking_strategy = 2 [(buf.validate.field).enum.defined_only = true];
158158
}
159159

160160
// OptimisticLockingStrategy defines how optimistic locking should be handled.

python/metalstack/api/v2/common_pb2.py

Lines changed: 18 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)