go-openapi / strfmt

openapi toolkit common string formats
Apache License 2.0
102 stars 62 forks source link

Feature: Add CIDR format #48

Closed kenjones-cisco closed 5 years ago

kenjones-cisco commented 5 years ago

Adds CIDR format and validation that work for IPv4 and IPv6.

codecov[bot] commented 5 years ago

Codecov Report

Merging #48 into master will decrease coverage by 0.06%. The diff coverage is 97.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
- Coverage   89.33%   89.26%   -0.07%     
==========================================
  Files          10       10              
  Lines        1632     1668      +36     
==========================================
+ Hits         1458     1489      +31     
- Misses        145      149       +4     
- Partials       29       30       +1
Impacted Files Coverage Δ
format.go 73.91% <100%> (+0.32%) :arrow_up:
time.go 96.66% <100%> (-0.04%) :arrow_down:
date.go 95.83% <100%> (-0.06%) :arrow_down:
bson.go 77.19% <100%> (-0.4%) :arrow_down:
duration.go 96.42% <100%> (-0.05%) :arrow_down:
conv/default.go 66.66% <66.66%> (ø) :arrow_up:
default.go 93.52% <97.94%> (-0.09%) :arrow_down:

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 bb51295...2dbb59a. Read the comment docs.

kenjones-cisco commented 5 years ago

@casualjim @fredbi Any feedback?

fredbi commented 5 years ago

Thanks @kenjones-cisco