Documented the internal KeyNameFilter and KeyNameModel protocols in the library target.

This commit is contained in:
2025-09-09 07:44:41 +02:00
parent 21fba2612d
commit 71464a5bc0
2 changed files with 19 additions and 2 deletions
@@ -10,15 +10,21 @@
//
//===----------------------------------------------------------------------===
/// A protocol that defines decodable models containing the `key` and `name` properties.
protocol KeyNameModel: Sendable {
// MARK: Properties
/// A key value.
var key: String { get }
/// A name value.
var name: String { get }
// MARK: Initialisers
// MARK: Initializers
/// Initializes this model from a given payload.
/// - Parameter payload: A payload that contains the values for the model.
init(_ payload: Components.Schemas.Tuple)
}