Open shaobo-he-aws opened 9 months ago
I can help out with this, but the extension function meta-level is a bit abstract for me.
I have found the ipaddr.rs/get_argument_check()
and more specifically ipaddr.rs/validate_ip_string()
, but it returns a Result
.
Where would I implement a check that could return a warning for a non-strict cidr?
We don't right now have a way for extension functions to return warnings; we'd have to build one as part of this issue.
I see. That's a bit over my head. Once and if the warning system is in place, I'd be happy to tackle the pure cidr validation part, if need be.
Describe the improvement you'd like to request
A CIDR notation is strict if its host bits are all 0s. But we allow non-strict CIDR notations, which have been a source of confusion. We should give warnings about them.
Describe alternatives you've considered
No response
Additional context
No response
Is this something that you'd be interested in working on?