From 0d78b9a6df6cba307686ed5b43cde00eb7d82a98 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Mon, 13 Oct 2025 02:44:35 +0200 Subject: [PATCH] Changed the scope of InputValidationError type in the library target to public. --- .../{Internal => Public}/Errors/InputValidationError.swift | 2 +- Sources/DiscogsService/Public/Models/Product.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename Sources/DiscogsService/{Internal => Public}/Errors/InputValidationError.swift (96%) diff --git a/Sources/DiscogsService/Internal/Errors/InputValidationError.swift b/Sources/DiscogsService/Public/Errors/InputValidationError.swift similarity index 96% rename from Sources/DiscogsService/Internal/Errors/InputValidationError.swift rename to Sources/DiscogsService/Public/Errors/InputValidationError.swift index e7b63fce4..90c8a8d53 100644 --- a/Sources/DiscogsService/Internal/Errors/InputValidationError.swift +++ b/Sources/DiscogsService/Public/Errors/InputValidationError.swift @@ -13,7 +13,7 @@ // ===----------------------------------------------------------------------=== /// A representation of all the possible validation error that could be thrown while validating an input. -enum InputValidationError: Error { +public enum InputValidationError: Error { /// An input is empty. case inputIsEmpty /// An input is nil. diff --git a/Sources/DiscogsService/Public/Models/Product.swift b/Sources/DiscogsService/Public/Models/Product.swift index b52d52b59..440eeeb5b 100644 --- a/Sources/DiscogsService/Public/Models/Product.swift +++ b/Sources/DiscogsService/Public/Models/Product.swift @@ -33,8 +33,8 @@ public struct Product: Sendable { /// Initializes this model. /// - Parameters: /// - name: A camel-cased name of a product. - /// - version: A URI link related to a product. - /// - url: A semantic version of a product. + /// - version: A semantic version of a product. + /// - url: A URI link related to a product. public init( name: String, version: String,