Skip to content

JSONSchema_StringContext

mattpolzin edited this page Sep 28, 2020 · 4 revisions

JSONSchema.StringContext

The context that only applies to .string schemas.

public struct StringContext: Equatable

Inheritance

Decodable, Encodable, Equatable

Initializers

init(maxLength:minLength:pattern:)

public init(maxLength: Int? = nil, minLength: Int? = nil, pattern: String? = nil)

init(from:)

public init(from decoder: Decoder) throws

Properties

maxLength

let maxLength: Int?

_minLength

let _minLength: Int?

minLength

var minLength: Int

pattern

Regular expression

let pattern: String?

Methods

combined(with:)

internal func combined(with other: JSONSchema.StringContext) throws -> JSONSchema.StringContext

validatedContext()

internal func validatedContext() throws -> JSONSchema.StringContext

encode(to:)

public func encode(to encoder: Encoder) throws
Types
Protocols
Global Functions
Extensions
Clone this wiki locally