Skip to main content

stringCriteria

Index

Functions

camelCase

  • Require field value to be formatted in camel case (fooBar).

contains

  • Require field value to contain a provided string.

kebabCase

  • Require field value to be formatted in kebab case (foo-bar).

lengthOf

  • Require field value to be of a specific string length.

lowerCase

  • Require field value to be all lower case.

match

  • Require field value to match a defined regex pattern.

notEmpty

  • Require field value to not be an empty string.

oneOf

  • Require field value to be one of the provided strings.

pascalCase

  • Require field value to be formatted in pascal case (FooBar).

snakeCase

  • Require field value to be formatted in snake case (foo_bar).

upperCase

  • Require field value to be all upper case.