Format

format keyword lets you add some basic semantic identification of certain types of strings. Below is a list of the most common ones:

  • Date and time formats: date-timedatetimeduration
  • Email formats: emailidn-email
  • Hostname formats: hostnameidn-hostname
  • IP address formats: ipv4ipv6
  • Resource identifier formats: uuiduriuri-referenceiriiri-reference
{  
	"type": "object",  
	"properties": {  
		"email": {  
			"type": "string",  
			"format": "email"  
		}  
	}  
}