String
extension String
-
Removes characters which are not allowed for this package
Declaration
Swift
func removeOAIIllegalCharacters() -> StringReturn Value
cleaned String
-
Removes brackets from the string and returns
Array{String}Declaration
Swift
var replaceBrackets: String { get } -
Replaces reserved keywords
Declaration
Swift
var normalized: String { get } -
returns string with the first letter uppercased
Declaration
Swift
func upperFirst() -> String -
returns string with the first letter lowercased
Declaration
Swift
func lowerFirst() -> String -
returns string with the first letter lowercased only used for $anyOf cases
Declaration
Swift
func caseLowerFirst() -> String -
returns true if the type defined in this string matches the regex pattern of a primitive type in Swift
Declaration
Swift
var isPrimitiveType: Bool { get } -
returns true if the type defined in this string matches the regex pattern of a primitive dictionary type in Swift
Declaration
Swift
var isPrimitiveDictionary: Bool { get } -
returns true if the type defined in this string matches the regex pattern of a primitive array type in Swift
Declaration
Swift
var isPrimitiveArray: Bool { get } -
returns true if the type defined in this string matches the regex pattern of an array type in Swift
Declaration
Swift
var isArray: Bool { get } -
removes a leading
_from the string if one existsDeclaration
Swift
var removePrefix: String { get }
View on GitHub
String Extension Reference