process/supplier-agent: beautify validation file format
This commit is contained in:
parent
630b6733ed
commit
d86c7f360f
@ -1,3 +1,4 @@
|
||||
/* eslint-disable zod/require-strict */
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
/* eslint-disable complexity */
|
||||
import type { ValidationContext } from '../types';
|
||||
@ -146,7 +147,10 @@ const SumsSchema = ValuesSchema.pick({
|
||||
export function createValidationSchema(context: ValidationContext) {
|
||||
const { apolloClient } = context;
|
||||
|
||||
return AgentsSchema.merge(ConditionsSchema)
|
||||
return z
|
||||
.object({})
|
||||
.merge(AgentsSchema)
|
||||
.merge(ConditionsSchema)
|
||||
.merge(SumsSchema)
|
||||
.superRefine(async (values, ctx) => {
|
||||
const {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user