Reference Schemas IPAddress

Schema

IPAddress

string

Constraints

Rule
pattern: ^(?:(25[0-5]|2[0-4]\d|[01]?\d?\d)(\.(25[0-5]|2[0-4]\d|[01]?\d?\d)){3}|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|((?:[A-Fa-f0-9]{1,4}:){1,7}:|:(?:(?:[A-Fa-f0-9]{1,4}:){1,6}))([A-Fa-f0-9]{1,4})?)$

Examples

[ "127.0.0.1" ]

JSON Schema

{ "type": "string", "pattern": "^(?:(25[0-5]|2[0-4]\\d|[01]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[01]?\\d?\\d)){3}|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|((?:[A-Fa-f0-9]{1,4}:){1,7}:|:(?:(?:[A-Fa-f0-9]{1,4}:){1,6}))([A-Fa-f0-9]{1,4})?)$", "examples": [ "127.0.0.1" ] }