Improved the source code documentation of the source code in the package.

This commit is contained in:
2026-03-24 01:26:27 +01:00
parent 25b62a4f67
commit a559ae0163
14 changed files with 50 additions and 24 deletions
@@ -65,9 +65,9 @@ extension InputValidationRule where Self == SecureValidationRule {
enum SecurityInput: Int {
/// A consumer key is 20 characters long.
case consumerKey = 20
/// A consumer key is 32 characters long.
/// A consumer secret is 32 characters long.
case consumerSecret = 32
/// A consumer key is 40 characters long.
/// A user token is 40 characters long.
case userToken = 40
}
@@ -83,7 +83,7 @@ private extension SecureValidationRule {
///
/// - Parameter input: An input to be validated.
/// - Returns: A flag that indicates whether a given input has been validated or not.
/// - Throws: An error of type ``InputValidatorError`` in case the validation failed.
/// - Throws: An error of type ``InputValidationError`` in case the validation failed.
func validate(input: String?) throws -> Bool {
guard let input else {
return false