Skip to content

JSONTypeFormat_StringFormat

mattpolzin edited this page Jun 11, 2021 · 4 revisions

JSONTypeFormat.StringFormat

The allowed "format" properties for .string schemas.

public enum StringFormat: RawRepresentable, Equatable, OpenAPIFormat 

Inheritance

Equatable, OpenAPIFormat, RawRepresentable

Nested Type Aliases

SwiftType

public typealias SwiftType = String

Initializers

init(rawValue:)

public init(rawValue: String) 

Enumeration Cases

generic

case generic

byte

case byte

binary

case binary

date

case date

dateTime

A string instance is valid against this attribute if it is a valid date representation as defined by https:​//tools.ietf.org/html/rfc3339#section-5.6

case dateTime

password

case password

other

case other(String)

Properties

rawValue

public var rawValue: String 

unspecified

public static var unspecified: StringFormat 

jsonType

public var jsonType: JSONType 

Methods

extended(_:)

public static func extended(_ format: Extended) -> Self 
Types
Protocols
Global Functions
Extensions
Clone this wiki locally