code: function (val, condition, options) {
        var valid = [
            'date',       'time',      'utc-millisec',
            'regex',      'color',     'style',
            'phone',      'uri',       'email',
            'ip-address', 'ipv6',      'street-adress',
            'country',    'region',    'postal-code',
            'locality',   'date-time'
        ];
        if (valid.indexOf(val) === -1) {
          throw new(Error)({name:"ArgumentError"});
        }
  
        return this.define("format", val, condition, options);
      }
docs: JSON Schema 5.20: format