exposed ports numeric validation

[finishes: #77123572]
Unused method argument - `attribute`. If it's necessary, use `_` or `_attribute` as an argument name to indicate that it won't be used.