PrimitiveTypeResolver
enum PrimitiveTypeResolver
Resolves primitive types defined in open api document e.g. for object properties or method parameters
-
Resolves Strings with special formats
Declaration
Swift
static func resolveTypeFormat(context: JSONSchema.CoreContext<JSONTypeFormat.StringFormat>) -> StringParameters
contextstring context
Return Value
type as String
-
Resolves Integer with special formats
Declaration
Swift
static func resolveTypeFormat(context: JSONSchema.CoreContext<JSONTypeFormat.IntegerFormat>) -> StringParameters
contextinteger context
Return Value
type as String
-
Resolves Number with special formats
Declaration
Swift
static func resolveTypeFormat(context: JSONSchema.CoreContext<JSONTypeFormat.NumberFormat>) -> StringParameters
contextnumber context
Return Value
type as String
-
Undocumented
Declaration
Swift
static func resolveDefaultValue(schema: DereferencedJSONSchema?) -> String? -
Undocumented
Declaration
Swift
static func resolveMinMax(schema: DereferencedJSONSchema?) -> (Int?, Int?) -
Resolves primitive types defined in open api document
Throws
error if type cannot be resolvedDeclaration
Swift
static func resolveTypeFormat(schema: JSONSchema) throws -> StringParameters
schemaschema to check
Return Value
type as String
-
Resolves primitive types defined in open api document
Throws
error if type cannot be resolvedDeclaration
Swift
static func resolveTypeFormat(schema: DereferencedJSONSchema) throws -> StringParameters
schemadereferenced schema to check
Return Value
type as String
-
Resolves types defined in open api document
Throws
error if type cannot be resolvedDeclaration
Swift
static func resolveTypeFormat(schema: Either<JSONReference<JSONSchema>, JSONSchema>?) throws -> StringParameters
schemaOpenAPIKit type - either references or schema type
Return Value
type as String
View on GitHub
PrimitiveTypeResolver Enumeration Reference