Skip to content

OpenAPI_Parameter_SchemaContext

mattpolzin edited this page Sep 28, 2020 · 15 revisions

OpenAPI.Parameter.SchemaContext

OpenAPI Spec "Parameter Object" schema and style configuration.

public struct SchemaContext: Equatable

See OpenAPI Parameter Object and OpenAPI Style Values.

Inheritance

Equatable, LocallyDereferenceable

Initializers

init(_:style:explode:allowReserved:example:)

public init(_ schema: JSONSchema, style: Style, explode: Bool, allowReserved: Bool = false, example: AnyCodable? = nil)

init(_:style:allowReserved:example:)

public init(_ schema: JSONSchema, style: Style, allowReserved: Bool = false, example: AnyCodable? = nil)

init(schemaReference:style:explode:allowReserved:example:)

public init(schemaReference: JSONReference<JSONSchema>, style: Style, explode: Bool, allowReserved: Bool = false, example: AnyCodable? = nil)

init(schemaReference:style:allowReserved:example:)

public init(schemaReference: JSONReference<JSONSchema>, style: Style, allowReserved: Bool = false, example: AnyCodable? = nil)

init(_:style:explode:allowReserved:examples:)

public init(_ schema: JSONSchema, style: Style, explode: Bool, allowReserved: Bool = false, examples: OpenAPI.Example.Map?)

init(_:style:allowReserved:examples:)

public init(_ schema: JSONSchema, style: Style, allowReserved: Bool = false, examples: OpenAPI.Example.Map?)

init(schemaReference:style:explode:allowReserved:examples:)

public init(schemaReference: JSONReference<JSONSchema>, style: Style, explode: Bool, allowReserved: Bool = false, examples: OpenAPI.Example.Map?)

init(schemaReference:style:allowReserved:examples:)

public init(schemaReference: JSONReference<JSONSchema>, style: Style, allowReserved: Bool = false, examples: OpenAPI.Example.Map?)

Properties

style

let style: Style

explode

let explode: Bool

allowReserved

let allowReserved: Bool

schema

let schema: Either<JSONReference<JSONSchema>, JSONSchema>

example

let example: AnyCodable?

examples

let examples: OpenAPI.Example.Map?
Types
Protocols
Global Functions
Extensions
Clone this wiki locally