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

Added support for readonly/writeonly properties #81

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

LVoogd
Copy link
Contributor

@LVoogd LVoogd commented Sep 21, 2021

The faker does not take into account the existence of readonly/writeonly properties. This creates some unwanted behavior. The Unit tests provide some more insight on how and when these properties are used.

Hereby my proposal to respect the readonly/writeonly properties.

@codecov
Copy link

codecov bot commented Sep 21, 2021

Codecov Report

Merging #81 (9bd5b17) into master (7c711d7) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #81      +/-   ##
============================================
+ Coverage     99.13%   99.14%   +0.01%     
- Complexity       88       93       +5     
============================================
  Files            12       12              
  Lines           230      234       +4     
============================================
+ Hits            228      232       +4     
  Misses            2        2              
Impacted Files Coverage Δ
src/OpenAPIFaker.php 100.00% <100.00%> (ø)
src/SchemaFaker/ObjectFaker.php 100.00% <100.00%> (ø)
src/SchemaFaker/SchemaFaker.php 98.11% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c711d7...9bd5b17. Read the comment docs.

@canvural canvural merged commit 415e9d0 into canvural:master Sep 21, 2021
@canvural
Copy link
Owner

Looks good! Thank you!

I'll make a release soon.

@canvural
Copy link
Owner

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.

3 participants