NotOfResolver
enum NotOfResolver
Undocumented
-
Resolves $not types
Throws
throws if type cannot be resolvedDeclaration
Swift
static func resolve(objectName name: String, schema: JSONSchema) throws -> NotModel
Parameters
name
name of object
schema
schemas to check
Return Value
NotModel
-
types which are references in NotModels
Declaration
Swift
static var notOfReferences: [String]
-
types which are referenced by NotModel references
Declaration
Swift
static var notOfReferred: [String]
-
Returns true if the given type is generic (only possible when somehow referenced to $not model)
Declaration
Swift
static func isGeneric(type: String) -> Bool
Parameters
type
type to check
Return Value
true if generic
-
Resolves all objects which reference a $not model either directly or indirectly
Declaration
Swift
static func resolveReferenced(objects: [ObjectModel?])
Parameters
objects
list of object models to check