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

Block schema validation #3062

Merged
merged 2 commits into from
Oct 14, 2019
Merged

Block schema validation #3062

merged 2 commits into from
Oct 14, 2019

Conversation

vasild
Copy link
Contributor

@vasild vasild commented Oct 14, 2019

fix(crypto): strengthen schema validation checks

Check each schema error:

  • if it originated from the block, then the block must be an exception
  • if it originated from a transaction, then the transaction must be an
    exception

Also print the value should validation fail to make it easier to
diagnose problems.

Check each schema error:
* if it originated from the block, then the block must be an exception
* if it originated from a transaction, then the transaction must be an
exception

Also print the value should validation fail to make it easier to
diagnose problems.
@codecov
Copy link

codecov bot commented Oct 14, 2019

Codecov Report

Merging #3062 into develop will increase coverage by 0.04%.
The diff coverage is 94.44%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3062      +/-   ##
===========================================
+ Coverage    65.62%   65.67%   +0.04%     
===========================================
  Files          425      425              
  Lines        11734    11744      +10     
  Branches      1602     1605       +3     
===========================================
+ Hits          7701     7713      +12     
+ Misses        3997     3995       -2     
  Partials        36       36
Impacted Files Coverage Δ
packages/crypto/src/blocks/block.ts 92.64% <94.44%> (+0.58%) ⬆️
packages/crypto/src/validation/keywords.ts 88.88% <0%> (+1.58%) ⬆️
packages/crypto/src/errors.ts 81.13% <0%> (+1.88%) ⬆️

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 925f052...d8173f8. Read the comment docs.

@spkjp spkjp merged commit 12d5f03 into develop Oct 14, 2019
@ghost ghost deleted the block-schema-validation branch October 14, 2019 22:47
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.

None yet

2 participants