IBM / jsonsubschema

Tool for checking whether a JSON schema is a subschema of another JSON schema.
Apache License 2.0
85 stars 17 forks source link

Add support for `const` #20

Closed AlpAribal closed 9 months ago

AlpAribal commented 9 months ago

JSON Schema draft 6 introduces const, which is syntactic sugar for a single-valued enum. This PR adds support for this keyword.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (4ac3a06) 76.96% compared to head (c1ae4db) 76.90%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #20 +/- ## ========================================== - Coverage 76.96% 76.90% -0.07% ========================================== Files 8 8 Lines 1398 1403 +5 Branches 415 416 +1 ========================================== + Hits 1076 1079 +3 Misses 230 230 - Partials 92 94 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

hirzel commented 9 months ago

Dear @AlpAribal, thank you for your contribution! Could you please email me a copy of the signed DCO at hirzel@us.ibm.com?