voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.52k stars 241 forks source link

Add const attribute support #471

Closed jeremie-stripe closed 2 years ago

jeremie-stripe commented 2 years ago

Added in draft 6. See documentation on json-schema.org

codecov[bot] commented 2 years ago

Codecov Report

Merging #471 (25e258b) into master (081dfc3) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #471      +/-   ##
==========================================
+ Coverage   89.83%   89.89%   +0.05%     
==========================================
  Files          74       75       +1     
  Lines        1555     1564       +9     
==========================================
+ Hits         1397     1406       +9     
  Misses        158      158              
Impacted Files Coverage Δ
lib/json-schema/validators/draft6.rb 100.00% <ø> (ø)
lib/json-schema/attributes/const.rb 100.00% <100.00%> (ø)

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 081dfc3...25e258b. Read the comment docs.