Skip to content

DereferencedJSONSchema_ObjectContext

mattpolzin edited this page Sep 28, 2020 · 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)

init(_:resolvingIn:)

internal init(_ objectContext: JSONSchema.ObjectContext, resolvingIn components: OpenAPI.Components) throws

init(properties:additionalProperties:maxProperties:minProperties:)

internal init(properties: [String: DereferencedJSONSchema], additionalProperties: Either<Bool, DereferencedJSONSchema>? = nil, maxProperties: Int? = nil, minProperties: Int? = nil)

Properties

maxProperties

let maxProperties: Int?

_minProperties

let _minProperties: Int?

properties

let properties: [String: DereferencedJSONSchema]

additionalProperties

let additionalProperties: Either<Bool, DereferencedJSONSchema>?

requiredProperties

var requiredProperties: [String]

optionalProperties

var optionalProperties: [String]

minProperties

The minimum number of properties allowed.

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.

jsonSchemaObjectContext

var jsonSchemaObjectContext: JSONSchema.ObjectContext
Types
Protocols
Global Functions
Extensions
Clone this wiki locally