Skip to content

JSONSchemaFragment_GeneralContext

mattpolzin edited this page May 23, 2020 · 1 revision

JSONSchemaFragment.GeneralContext

public struct GeneralContext: Equatable

Inheritance

Decodable, Equatable

Initializers

init(format:description:title:nullable:deprecated:externalDocs:allowedValues:example:readOnly:writeOnly:)

public init(format: String? = nil, description: String? = nil, title: String? = nil, nullable: Bool? = nil, deprecated: Bool? = nil, externalDocs: OpenAPI.ExternalDocumentation? = nil, allowedValues: [AnyCodable]? = nil, example: AnyCodable? = nil, readOnly: Bool? = nil, writeOnly: Bool? = nil)

init(from:)

public init(from decoder: Decoder) throws

Properties

format

var format: String?

description

var description: String?

title

var title: String?

nullable

var nullable: Bool?

deprecated

var deprecated: Bool?

externalDocs

var externalDocs: OpenAPI.ExternalDocumentation?

allowedValues

var allowedValues: [AnyCodable]?

example

var example: AnyCodable?

readOnly

var readOnly: Bool?

writeOnly

var writeOnly: Bool?
Types
Protocols
Global Functions
Extensions
Clone this wiki locally