json-schema-org/json-schema-spec

String format validation for IP addresses with network mask

shodhansave opened this issue · 1 comments

Hello folks,

I came across string validation format for IP addresses. I was wondering if we can support the addresses with network mask as well. That means validating something like 192.168.10.0/31.

This can be achieved using regexp, but I'm curious to know if this validation can be part of the spec.

Thanks

@shodhansave the format keyword is open-ended and not validated by default, so you're welcome to make any format you want.

I'm not sure that this specific format warrants inclusion in the spec, though. Happy to be proven wrong if you can prove the demand for it.

Closing this for now.