fix: add previous value as optional in test schema env diff (#4071)

* fix: add previous value as optional

* refactor: remove method chaining for consistency

---------

Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
Nivedin
2024-06-03 14:29:48 +05:30
committed by GitHub
parent 5c214a8da0
commit d0350ec789

View File

@@ -400,7 +400,7 @@ const HoppTestResultSchema = z
(x) => "secret" in x && !x.secret
).and(
z.object({
previousValue: z.string(),
previousValue: z.optional(z.string()),
})
)
),
@@ -415,7 +415,7 @@ const HoppTestResultSchema = z
(x) => "secret" in x && !x.secret
).and(
z.object({
previousValue: z.string(),
previousValue: z.optional(z.string()),
})
)
),