Attention is currently required from: pespin.
fixeria has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/41298?usp=email )
Change subject: [REST] OpenAPI: fix regexp to permit IPv6 addr in EnbId ......................................................................
Patch Set 1:
(1 comment)
File contrib/openapi.yaml:
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/41298/comment/b14734d3_ea8a6... : PS1, Line 195: pattern: '^enb-conn:[0-9a-f:.]+-[0-9]+$'
I'm not a regexp by any means, but apparently matching a n IP address is a bit more complex? […]
Yes, a proper/complete regexp for IPv4v6 would be huge. But we don't really need this level of complexity here: we don't care if the address is 100% correct. We simply match the prefix and enforce basic data format (`addr-port`) for this variant of `EnbId`.