Fake Type Spec
Fake Type Spec
Overseed Extension Type
Use a #SpecFakeType specification when you want a fake value for a certain attribute such as credit card number or first name.
FakeType Field
field_name: #SpecFakeType & {
fakename: string
}
- Notes:
- Note
field_name
is the name of your field e.g. street_address
.
- The value for
fakename
must match an available fake type (see Fake Types section below).
Examples
Fake creditcard attributes
// creditcard number and type
account_number: #SpecFakeType & {
fakename: "creditcardnumber"
}
credit_card_type: #SpecFakeType & {
fakename: "creditcardtype"
}
CSV Example Output
account_number | credit_card_type |
---|
371541075511513 | Visa |
816452881196221 | JCB |
4386765607233982 | American Express |
2646614353647583 | Diners Club |
JSON Example Output
[
{
account_number: 371541075511513,
credit_card_type: Visa,
},
{
account_number: 816452881196221,
credit_card_type: JCB,
},
{
account_number: 4386765607233982,
credit_card_type: American Express,
},
{
account_number: 2646614353647583,
credit_card_type: Diners Club,
}
]
Fake Types
# | fakename | description | example |
---|