Mockaroo · Schema

Mockaroo Field Spec

Inline field specification used to drive ad-hoc generation requests without a saved schema.

Test DataMock DataAPI MockingData GenerationDeveloper ToolsQA TestingRealistic DataSchemasDatasetsPublic APIs

Properties

Name Type Description
name string Column or property name for the generated field.
type string Built-in Mockaroo field type (e.g. 'First Name', 'Email Address', 'IP Address v4').
percentBlank integer Percentage of generated values that should be blank.
formula string Mockaroo formula expression to transform the generated value.
View JSON Schema on GitHub

JSON Schema

mockaroo-field-spec-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.mockaroo.com/schemas/mockaroo-field-spec.json",
  "title": "Mockaroo Field Spec",
  "description": "Inline field specification used to drive ad-hoc generation requests without a saved schema.",
  "type": "object",
  "required": ["name", "type"],
  "properties": {
    "name": {
      "type": "string",
      "description": "Column or property name for the generated field."
    },
    "type": {
      "type": "string",
      "description": "Built-in Mockaroo field type (e.g. 'First Name', 'Email Address', 'IP Address v4')."
    },
    "percentBlank": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "Percentage of generated values that should be blank."
    },
    "formula": {
      "type": "string",
      "description": "Mockaroo formula expression to transform the generated value."
    }
  },
  "additionalProperties": true
}