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:
@@ -400,7 +400,7 @@ const HoppTestResultSchema = z
|
|||||||
(x) => "secret" in x && !x.secret
|
(x) => "secret" in x && !x.secret
|
||||||
).and(
|
).and(
|
||||||
z.object({
|
z.object({
|
||||||
previousValue: z.string(),
|
previousValue: z.optional(z.string()),
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -415,7 +415,7 @@ const HoppTestResultSchema = z
|
|||||||
(x) => "secret" in x && !x.secret
|
(x) => "secret" in x && !x.secret
|
||||||
).and(
|
).and(
|
||||||
z.object({
|
z.object({
|
||||||
previousValue: z.string(),
|
previousValue: z.optional(z.string()),
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user