From 174c3c0a316eb942173b5f8d73e27a472c31cee4 Mon Sep 17 00:00:00 2001 From: RushikeshBhavsar3605 Date: Wed, 12 Aug 2026 18:01:00 +0530 Subject: [PATCH] fix(frontier): allow omitted plan state --- raystack/frontier/v1beta1/admin.proto | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/raystack/frontier/v1beta1/admin.proto b/raystack/frontier/v1beta1/admin.proto index 033ddf65..46c4201a 100644 --- a/raystack/frontier/v1beta1/admin.proto +++ b/raystack/frontier/v1beta1/admin.proto @@ -457,11 +457,14 @@ message PlanRequestBody { int64 trial_days = 7 [(buf.validate.field).int64 = {gte: 0}]; // known states are "active" and "inactive" - string state = 8 [(buf.validate.field).string = { - in: [ - "active", - "inactive" - ] + string state = 8 [(buf.validate.field) = { + ignore: IGNORE_IF_ZERO_VALUE + string: { + in: [ + "active", + "inactive" + ] + } }]; google.protobuf.Struct metadata = 20;