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:
parent
5c214a8da0
commit
d0350ec789
1 changed files with 2 additions and 2 deletions
|
|
@ -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()),
|
||||
})
|
||||
)
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue