这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@danielgtaylor
Copy link
Owner

This PR adds three options for customizing the round-trip behavior of resources with read-only fields:

  1. Remove (default): read-only fields are allowed and removed
  2. Reject: read-only fields are not allowed to be set to anything but their zero value
  3. Ignore: read-only fields are allowed and ignored. Service implementers can customize the behavior as needed in middleware, resolvers, or operation handlers.

Adds a test for each case.

@codecov
Copy link

codecov bot commented Sep 13, 2022

Codecov Report

Base: 87.15% // Head: 87.28% // Increases project coverage by +0.13% 🎉

Coverage data is based on head (4f561e8) compared to base (518e34c).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
+ Coverage   87.15%   87.28%   +0.13%     
==========================================
  Files          25       25              
  Lines        2133     2155      +22     
==========================================
+ Hits         1859     1881      +22     
  Misses        193      193              
  Partials       81       81              
Impacted Files Coverage Δ
operation.go 86.66% <100.00%> (+0.50%) ⬆️
resolver.go 88.97% <100.00%> (+0.64%) ⬆️
router.go 70.85% <100.00%> (+0.14%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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