MockHero

empty_string

Chaos Testing

Generate empty strings and whitespace-only strings. For testing required field validation, empty state handling, and string trimming logic.

Example Outputs

""" ""\t""\n"

API Usage

Send a POST request to generate empty string data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "empty_string",
          "type": "empty_string"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Required field validation
  • Empty state testing
  • Trim/sanitization testing
  • NOT NULL constraint testing

Quick Info

Field Type
empty_string
Category
Chaos Testing
Parameters
None required
Output Format
JSON, CSV, SQL

Try it now

Generate empty string data instantly in the playground.

Generate Empty String + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free