Skip to content

DereferencedJSONSchema_ArrayContext

mattpolzin edited this page Jun 11, 2021 · 4 revisions

DereferencedJSONSchema.ArrayContext

The context that only applies to .array schemas.

public struct ArrayContext: Equatable 

Inheritance

Equatable

Initializers

init?(_:)

public init?(_ arrayContext: JSONSchema.ArrayContext) 

Properties

items

A JSON Type Node that describes the type of each element in the array.

public let items: DereferencedJSONSchema?

maxItems

Maximum number of items in array.

public let maxItems: Int?

minItems

Minimum number of items in array. Defaults to 0.

public var minItems: Int 

uniqueItems

Setting to true indicates all elements of the array are expected to be unique. Defaults to false.

public var uniqueItems: Bool 
Types
Protocols
Global Functions
Extensions
Clone this wiki locally