Skip to content

JSONTypeFormat_StringFormat_Extended

mattpolzin edited this page Jun 11, 2021 · 3 revisions

JSONTypeFormat.StringFormat.Extended

Popular non-standard "format" properties for .string schemas.

public enum Extended: String, Equatable 

Specify with e.g. .string(format: .extended(.uuid))

Inheritance

Equatable, String

Enumeration Cases

uuid

case uuid = "uuid"

email

case email = "email"

hostname

case hostname = "hostname"

ipv4

case ipv4 = "ipv4"

ipv6

case ipv6 = "ipv6"

uri

A string instance is valid against this attribute if it is a valid URI, according to https:​//tools.ietf.org/html/rfc3986

case uri = "uri"

uriReference

A string instance is valid against this attribute if it is a valid URI, according to https:​//tools.ietf.org/html/rfc3986

case uriReference = "uriref"
Types
Protocols
Global Functions
Extensions
Clone this wiki locally