Skip to content

[Issue 266] Faker Helpers docs show uniqueArray example rejected by deployed generator #272

Description

@eviltester

Summary

The published Faker Helpers docs show helpers.uniqueArray(this.word.sample, 5), but the deployed generator rejects that syntax as unsafe/complex. A aker.word.sample variant works, so the documentation and runtime behavior are inconsistent.

Reproduction

  1. Open the published Faker Helpers docs: https://eviltester.github.io/grid-table-editor/docs/faker-helpers.html
  2. Note the helpers.uniqueArray(this.word.sample, 5) example.
  3. Open https://eviltester.github.io/grid-table-editor/site/app.html and try the documented example in the generator command context.
  4. Observe the rejection for unsafe/complex syntax.
  5. Compare with a working variant such as helpers.uniqueArray(faker.word.sample, 3).

Expected

Published examples should run in the deployed generator or clearly state when a sample is not intended for the generator syntax context.

Actual

The documented example is rejected by the deployed generator.

Evidence

Docs evidence

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions