Skip to content

Feature/omit token and preserve overrides in chaos - #65

Merged
BillyRuffian merged 3 commits into
BillyRuffian:masterfrom
mjrisaac:feature/omit-token-and-preserve-overrides-in-chaos
Jun 7, 2026
Merged

Feature/omit token and preserve overrides in chaos#65
BillyRuffian merged 3 commits into
BillyRuffian:masterfrom
mjrisaac:feature/omit-token-and-preserve-overrides-in-chaos

Conversation

@mjrisaac

Copy link
Copy Markdown

Add OMIT token and preserve overridden attributes during chaos builds

  1. FakerMaker::OMIT is a token value for explicitly excluding fields from the output without relying on :nil or :empty. This allows a field to be excluded as needed whilst still permitting literal nil or empty string/array/hash values.

  2. Attributes given as explicit overrides are always preserved regardless of chaos mode. Previously optional attributes could be excluded even if explicitly passed in.

Chaos mode can no longer randomly drop optional attributes that were explicitly overridden at build time, hence the version bump from v4 to v5.

@BillyRuffian
BillyRuffian merged commit 06fb706 into BillyRuffian:master Jun 7, 2026
2 checks passed
@mjrisaac
mjrisaac deleted the feature/omit-token-and-preserve-overrides-in-chaos branch July 6, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants