Skip to content

Bugfix/5.0.3 - #69

Merged
BillyRuffian merged 3 commits into
masterfrom
bugfix/5.0.3
Jul 27, 2026
Merged

Bugfix/5.0.3#69
BillyRuffian merged 3 commits into
masterfrom
bugfix/5.0.3

Conversation

@BillyRuffian

Copy link
Copy Markdown
Owner

Fix: setting an empty hash as an override forces an empty hash. Faker Maker now examines override parameters when there are multiple embedded factories and selects the most appropriate

BillyRuffian and others added 3 commits July 24, 2026 09:50
…so that invalid JSON Schema messages can be sent
…y that contains all of the overrides that have been passed. If more than one match, a random choice will be made, if no factories match, a NoSuchFactoryError will be raised. If there are no overridess then behaviour will continue as before and a random factory will be chosen. This does not walk the embedding tree!! Only the top level embedding will be considered for matching
Cover the override-based factory selection logic (select_embedded_factory_or_sample)
and the empty hash bypass behaviour. Remove the redundant attribute-filtering pipeline
in manufacture_from_embedded_factory that was stripping valid overrides.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@BillyRuffian
BillyRuffian merged commit 92a0fd6 into master Jul 27, 2026
5 checks passed
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.

1 participant