Skip to content

DereferencedJSONSchema_ObjectContext

mattpolzin edited this page Jun 11, 2021 · 4 revisions

DereferencedJSONSchema.ObjectContext

The context that only applies to .object schemas.

public struct ObjectContext: Equatable 

Inheritance

Equatable

Initializers

init?(_:)

public init?(_ objectContext: JSONSchema.ObjectContext) 

Properties

maxProperties

public let maxProperties: Int?

properties

public let properties: [String: DereferencedJSONSchema]

additionalProperties

public let additionalProperties: Either<Bool, DereferencedJSONSchema>?

requiredProperties

public var requiredProperties: [String] 

optionalProperties

public var optionalProperties: [String] 

minProperties

The minimum number of properties allowed.

public var minProperties: Int 

This might constradict a value explicitly specified on initialization or when decoding if the number of required properties is greater than the explicitly set minimum.

Types
Protocols
Global Functions
Extensions
Clone this wiki locally