Skip to content

JSONTypeFormat_AnyFormat

mattpolzin edited this page Jun 11, 2021 · 3 revisions

JSONTypeFormat.AnyFormat

A format used when no type is known or any type is allowed.

public enum AnyFormat: RawRepresentable, Equatable, OpenAPIFormat 

There are no built-in formats that do not have an associated type, but it is still important to be able to specify a format without a type. This can come into play when writing fragments of schemas to be combined later.

Inheritance

Equatable, OpenAPIFormat, RawRepresentable

Nested Type Aliases

SwiftType

public typealias SwiftType = AnyCodable

Initializers

init(rawValue:)

public init(rawValue: String) 

Enumeration Cases

generic

case generic

other

case other(String)

Properties

rawValue

public var rawValue: String 

unspecified

public static var unspecified: AnyFormat 

jsonType

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