tlsa / libcyaml

C library for reading and writing YAML.
ISC License
258 stars 56 forks source link

Value validation callbacks #217

Closed tlsa closed 1 year ago

tlsa commented 1 year ago

This adds the ability to provide client value validation callbacks in the schema, for all value types except boolean.

codecov[bot] commented 1 year ago

Codecov Report

Merging #217 (f1c19a6) into main (350052f) will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #217      +/-   ##
==========================================
+ Coverage   97.16%   97.22%   +0.06%     
==========================================
  Files          10       10              
  Lines        2045     2092      +47     
  Branches      434      455      +21     
==========================================
+ Hits         1987     2034      +47     
  Misses         28       28              
  Partials       30       30              
Flag Coverage Δ
unittests 97.22% <100.00%> (+0.06%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/load.c 98.61% <100.00%> (+0.06%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more