Home / Function/ FormSchema() — supabase Function Reference

FormSchema() — supabase Function Reference

Architecture documentation for the FormSchema() function in ProjectCreation.schema.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/ProjectCreation/ProjectCreation.schema.ts lines 39–47

  .superRefine(({ dbPassStrength, dbPassStrengthWarning }, ctx) => {
    if (dbPassStrength < DEFAULT_MINIMUM_PASSWORD_STRENGTH) {
      ctx.addIssue({
        code: z.ZodIssueCode.custom,
        path: ['dbPass'],
        message: dbPassStrengthWarning || 'Password not secure enough',
      })
    }
  })

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free