Fakers

The Fakers field type generates fake data by passing directly through to the fake-rs crate.

This is mostly useful for generating your own categories if you don't want to hand craft the content.

Schema

fields:
  - name: Fakers IP
    type: Fakers
    args:
      subtype: IP
    null_probability: 0.5
  - name: Fakers Buzzword
    type: Fakers
    args:
      subtype: Buzzword
    constraints:
      - type: IfNull
        name: Fakers IP
  - name: Fakers CC Number
    type: Fakers
    args:
      subtype: CreditCardNumber

Output

Fakers IPFakers BuzzwordFakers CC Number
Distributed5156398210874490
188.123.216.220372329793829177
155.111.76.884374470709955

Arguments

NameTypeDescriptionDefault
subtypestringThe type of fake data to generate. See below for types (#subtypes).

Field arguments

NameTypeDescriptionDefault Value
null_probabilityfloatThe probability that this field will be null.0.0
constraintslistA list of constraints to apply to this field.[]

Supported constraints

NameDescription
IfNullThe value must only be non-null if another field is null.

Subtypes

This uses the fake-rs crate under the hood. The following values are supported.

Subtype
FirstName
LastName
Title
Suffix
Name
NameWithTitle
FreeEmailProvider
DomainSuffix
FreeEmail
SafeEmail
Username
IPv4
IPv6
IP
MACAddress
UserAgent
RfcStatusCode
ValidStatusCode
HexColor
RgbColor
RgbaColor
HslColor
HslaColor
Color
CompanySuffix
CompanyName
Buzzword
BuzzwordMiddle
BuzzwordTail
CatchPhase
BsVerb
BsAdj
BsNoun
Bs
Profession
Industry
CurrencyCode
CurrencyName
CurrencySymbol
CreditCardNumber
CityPrefix
CitySuffix
CityName
CountryName
CountryCode
StreetSuffix
StreetName
TimeZone
StateName
StateAbbr
SecondaryAddressType
SecondaryAddress
ZipCode
PostCode
BuildingNumber
Latitude
Longitude
Isbn
Isbn13
Isbn10
PhoneNumber
CellNumber
Time
Date
DateTime
FilePath
FileName
FileExtension
DirPath
Bic