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.
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
| Fakers IP | Fakers Buzzword | Fakers CC Number |
| Distributed | 5156398210874490 |
| 188.123.216.220 | | 372329793829177 |
| 155.111.76.88 | | 4374470709955 |
| Name | Type | Description | Default |
| subtype | string | The type of fake data to generate. See below for types (#subtypes). | |
| Name | Type | Description | Default Value |
| null_probability | float | The probability that this field will be null. | 0.0 |
| constraints | list | A list of constraints to apply to this field. | [] |
| Name | Description |
| IfNull | The value must only be non-null if another field is null. |
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 |