<reponame>alisour/python-examples<filename>m10_messaging_ui/node_modules/fsevents/node_modules/is-my-json-valid/test/fixtures/cosmic.js<gh_stars>0exports.valid = {
  fullName : "John Doe",
  age : 47,
  state : "Massachusetts",
  city : "Boston",
  zip : 16417,
  married : false,
  dozen : 12,
  dozenOrBakersDozen : 13,
  favoriteEvenNumber : 14,
  topThreeFavoriteColors : [ "red", "blue", "green" ],
  favoriteSingleDigitWholeNumbers : [ 7 ],
  favoriteFiveLetterWord : "coder",
  emailAddresses :
  [
    "kenaa@example.com",
    "hzdkv@example.com",
    "&'*+-./=?^_{}~@other-valid-characters-in-local.net",
    "mixed-1234-in-{+^}-local@sld.net",
    "ychag@example.com",
    "\"quoted\"@sld.com",
    "\"\\e\\s\\c\\a\\p\\e\\d\"@sld.com",
    "\"hzdkv@example.com\"@sld.com",
    "\"escaped\\\"quote\"@sld.com",
    "\"back\\slash\"@sld.com",
    "dycjh@example.com",
    "lyhxr@example.com",
    "kenaa@example.com",
    "lyhxr@example.com",
    "nnheo@example.com",
    "nnheo@example.com",
    "kenaa@example.com",
    "envkt@example.com",
    "dycjh@example.com",
    "dycjh@example.com",
    "lyhxr@example.com",
    "lyhxr@example.com",
    "dycjh@example.com",
    "efpyi@example.com"
  ],
  ipAddresses : [ "127.0.0.1", "172.16.31.10", "192.168.1.1", "172.16.31.10", "2.2.2.2" ]
}

exports.invalid = {
  fullName : null,
  age : -1,
  state : 47,
  city : false,
  zip : [null],
  married : "yes",
  dozen : 50,
  dozenOrBakersDozen : "over 9000",
  favoriteEvenNumber : 15,
  topThreeFavoriteColors : [ "red", 5 ],
  favoriteSingleDigitWholeNumbers : [ 78, 2, 999 ],
  favoriteFiveLetterWord : "codernaut",
  emailAddresses : [],
  ipAddresses : [ "999.0.099.1", "294.48.64.2346", false, "2221409.64214128.42414.235233", "124124.12412412" ]
}

exports.schema = { // from cosmic thingy
    name : "test",
    type : "object",
    additionalProperties : false,
    required : ["fullName", "age", "zip", "married", "dozen", "dozenOrBakersDozen", "favoriteEvenNumber", "topThreeFavoriteColors", "favoriteSingleDigitWholeNumbers", "favoriteFiveLetterWord", "emailAddresses", "ipAddresses"],
    properties :
    {
      fullName                        : { type : "string" },
      age                             : { type : "integer", minimum : 0 },
      optionalItem                    : { type : "string" },
      state                           : { type : "string" },
      city                            : { type : "string" },
      zip                             : { type : "integer", minimum : 0, maximum : 99999 },
      married                         : { type : "boolean" },
      dozen                           : { type : "integer", minimum : 12, maximum : 12 },
      dozenOrBakersDozen              : { type : "integer", minimum : 12, maximum : 13 },
      favoriteEvenNumber              : { type : "integer", multipleOf : 2 },
      topThreeFavoriteColors          : { type : "array", minItems : 3, maxItems : 3, uniqueItems : true, items : { type : "string" }},
      favoriteSingleDigitWholeNumbers : { type : "array", minItems : 1, maxItems : 10, uniqueItems : true, items : { type : "integer", minimum : 0, maximum : 9 }},
      favoriteFiveLetterWord          : { type : "string", minLength : 5, maxLength : 5 },
      emailAddresses                  : { type : "array", minItems : 1, uniqueItems : true, items : { type : "string", format : "email" }},
      ipAddresses                     : { type : "array", uniqueItems : true, items : { type : "string", format : "ipv4" }},
    }
  }