Skip to content
#

fake

Here are 510 public repositories matching this topic...

cestlacata
cestlacata commented May 19, 2021
  • Faker version: 8.1.2
  • OS: Windows 10

For locale fr_FR siren() and siret() methods generate incorrect values.
https://faker.readthedocs.io/en/master/locales/fr_FR.html#faker.providers.company.fr_FR.Provider.siren
https://faker.readthedocs.io/en/master/locales/fr_FR.html#faker.providers.company.fr_FR.Provider.siret

A valid SIREN has 9 digits = 8 digits + 1 Luhn Key
A valid SIRET has 14

NetanelBasal
NetanelBasal commented Jan 11, 2022

Description

Currently, each function returns a single value. We should give the option to return an array of values.

Proposed solution

Create a proxy function and use it in each one of the function generators:

export function cat(options?: FakeOptions) {
  return fake(catsData, options)
}
// core.ts
export interface FakeOptions {
  size: number
}

e

Improve this page

Add a description, image, and links to the fake topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the fake topic, visit your repo's landing page and select "manage topics."

Learn more