Skip to content

The open alternative to Salesforce, designed for AI.

265 B
Raw Blame
import camelCase from 'lodash.camelcase';
import { t } from '@lingui/core/macro';
import { z } from 'zod';

export const camelCaseStringSchema = z
  .string()
  .refine((value) => camelCase(value) === value, {
    error: () => t`String should be camel case`,
  });