getGlobalInputSchema
getGlobalInputSchema(
props):ZodObject<{[key:string]:ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>; },$strip>
Defined in: packages/core/src/globals/utils.ts:46
Builds a Zod object schema for validating all fields in a global.
Mirrors getCollectionInputSchema — same field-level logic, operates on
GlobalConfig. Used by updateGlobal server function to validate user
data before writing to vex_globals.
Parameters
Section titled “Parameters”Input props.
global
Section titled “global”The global config whose fields define the schema.
Returns
Section titled “Returns”ZodObject<{[key: string]: ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>; }, $strip>
A z.object schema with one key per field.