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

Required field errors #170

Merged
merged 38 commits into from
Dec 18, 2024
Merged

Required field errors #170

merged 38 commits into from
Dec 18, 2024

Conversation

alexander-yevsyukov
Copy link
Collaborator

@alexander-yevsyukov alexander-yevsyukov commented Dec 9, 2024

This PR makes the RequiredPolicy to treat the (required) option applied to a boolean or number field as Compilation.Error. Now the build terminates on such an error.

The PR adds the tests that verify this behaviour (see RequiredPolicySpec for details). Also, the PR removes the stub proto types that had wrongly applied (required) field because they now fail the build.

Build changes

  • Latest config was applied.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Dec 9, 2024
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

Attention: Patch coverage is 55.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 33.08%. Comparing base (868284c) to head (8e31138).
Report is 39 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #170      +/-   ##
============================================
+ Coverage     31.22%   33.08%   +1.85%     
- Complexity      331      350      +19     
============================================
  Files           139      139              
  Lines          2802     2805       +3     
  Branches        230      228       -2     
============================================
+ Hits            875      928      +53     
+ Misses         1871     1808      -63     
- Partials         56       69      +13     

@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review December 17, 2024 19:27
Copy link
Collaborator

@armiol armiol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-yevsyukov alexander-yevsyukov merged commit 87012df into master Dec 18, 2024
7 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the required-field-errors branch December 18, 2024 18:22
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