SwiftclassAnvil
class Anvil.JSONSchema
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 10
- field
var additionalProperties: Bool?+0x50 - field
var anyOf: [Anvil.JSONSchema]?+0x58 - field
var const: String?+0x60 - field
var description: String?+0x10 - field
var enum: [String]?+0x40 - field
var items: Anvil.JSONSchema?+0x48 - field
var order: [String]?+0x30 - field
var properties: [String : Anvil.JSONSchema]?+0x28 - field
var required: [String]?+0x38 - field
var type: Anvil.JSONSchema.Type+0x20
Header
class JSONSchema { enum Type { case union([Anvil.JSONSchema.Type]) case null case boolean case integer case number case string case array case object case anyOf } struct Property { let name: Swift.String let description: Swift.String? let schema: Anvil.JSONSchema let optional: Swift.Bool } enum CodingKeys { case description case type case properties case order case required case enum case items case additionalProperties case anyOf case const } var description: Swift.String? var type: Anvil.JSONSchema.Type var properties: [Swift.String : Anvil.JSONSchema]? var order: [Swift.String]? var required: [Swift.String]? var enum: [Swift.String]? var items: Anvil.JSONSchema? var additionalProperties: Swift.Bool? var anyOf: [Anvil.JSONSchema]? var const: Swift.String? }