Skip to content

OpenAPIFormat

mattpolzin edited this page Jun 11, 2021 · 6 revisions

OpenAPIFormat

OpenAPI formats represent the valid formats a raw type can take on to better specify its allowed values and intended semantics.

public protocol OpenAPIFormat: SwiftTyped, Codable, Equatable, RawRepresentable, Validatable where RawValue == String 

For example, a string might have the date-time format, indicating it is representative of a date/time and also indicating its format adheres to the RFC3339 specification for a "date-time."

See "formats" under the OpenAPI data type documentation.

Inheritance

Codable, Equatable, RawRepresentable, SwiftTyped, Validatable

Requirements

unspecified

static var unspecified: Self 

jsonType

var jsonType: JSONType 
Types
Protocols
Global Functions
Extensions
Clone this wiki locally