json-schema-spec
json-schema-spec copied to clipboard
Add Defined Format: MAC Address
Proposal: Add a defined format for Mac Address. The schema already has support for IPv4 and IPv6 data types. It would be useful to have support for the colon delimited MAC address format in the base schema.
Something similar to the following:
"mac_address": {
"type": "string",
"description": "Represents a MAC Address in the standard colon delimited format. Eg. `01:23:45:67:89:0A`",
"pattern": "^([A-F0-9]{2}:){5}[A-F0-9]{2}$"
}