From e0a6833fa464f8c4620061801ff695c35d3537ee Mon Sep 17 00:00:00 2001 From: Lukas Bindreiter Date: Tue, 29 Jul 2025 09:37:17 +0200 Subject: [PATCH] Allow default (not-set) values in diagram render options --- apis/workflows/v1/diagram.proto | 2 ++ buf.lock | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apis/workflows/v1/diagram.proto b/apis/workflows/v1/diagram.proto index 98d61fa..6225dd5 100644 --- a/apis/workflows/v1/diagram.proto +++ b/apis/workflows/v1/diagram.proto @@ -22,6 +22,7 @@ message RenderOptions { // "dagre" or "elk". Defaults to "dagre" string layout = 1 [(buf.validate.field).string = { in: [ + "", // if not set, defaults to "dagre" "dagre", "elk" ] @@ -39,6 +40,7 @@ message RenderOptions { // Set explicitly the direction of the diagram: https://d2lang.com/tour/layouts/#direction. string direction = 5 [(buf.validate.field).string = { in: [ + "", // if not set, defaults to the d2 default, which is "down" "up", "down", "right", diff --git a/buf.lock b/buf.lock index 0622b83..a43a31c 100644 --- a/buf.lock +++ b/buf.lock @@ -2,8 +2,8 @@ version: v2 deps: - name: buf.build/bufbuild/protovalidate - commit: c923a0c2a1324d8b9db81effea973b9c - digest: b5:ba54835683c74e87e751bdc482b7d1c157926024587f453ca3640d3348b846aba3244da145042226842e10876a856e19b6dffc96609167199a450455aef9acf3 + commit: 6c6e0d3c608e4549802254a2eee81bc8 + digest: b5:a7ca081f38656fc0f5aaa685cc111d3342876723851b47ca6b80cbb810cbb2380f8c444115c495ada58fa1f85eff44e68dc54a445761c195acdb5e8d9af675b6 - name: buf.build/googleapis/googleapis commit: 61b203b9a9164be9a834f58c37be6f62 digest: b5:7811a98b35bd2e4ae5c3ac73c8b3d9ae429f3a790da15de188dc98fc2b77d6bb10e45711f14903af9553fa9821dff256054f2e4b7795789265bc476bec2f088c