Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.10.0 - Support forcing non required fields #95

Merged
merged 1 commit into from
Jan 28, 2024
Merged

Conversation

ghandic
Copy link
Owner

@ghandic ghandic commented Jan 28, 2024

  • Allow to create strings of any length. If the generated string ends with a space, it will be changed to a dot (eg. 'at.' instead of 'at '. Just to avoid confusion.
  • Allow to generate data even for non-required fields (similar to: Polyfactory allow_none_optionals). The value should be a float between 0.0 and 1.0, indicating the probability of allowing getting a None value. 0.0 means "0% chances of getting a None", 1.0 means "100% chances of getting a None", 0.5 means "50% chances of getting a None", etc. The default is 0.5.

Copy link

codecov bot commented Jan 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4c935d6) 99.21% compared to head (69d80aa) 99.21%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #95   +/-   ##
=======================================
  Coverage   99.21%   99.21%           
=======================================
  Files          31       31           
  Lines        1148     1148           
=======================================
  Hits         1139     1139           
  Misses          9        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghandic ghandic merged commit 91d5e83 into main Jan 28, 2024
6 checks passed
@ghandic ghandic deleted the release/0.10.0 branch January 28, 2024 23:16
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