@@ -30,9 +30,10 @@ public struct List: Codable, Identifiable {
3030}
3131
3232extension List : Fielded {
33+ /// Additional fields that can be requested on the ``List`` object
3334 public typealias Field = PartialKeyPath < Self >
3435
35- static func fieldName( field: PartialKeyPath < List > ) -> String ? {
36+ static internal func fieldName( field: PartialKeyPath < List > ) -> String ? {
3637 switch field {
3738 case \. createdAt: return " created_at "
3839 case \. description: return " description "
@@ -44,11 +45,13 @@ extension List: Fielded {
4445 }
4546 }
4647
47- static var fieldParameterName = " list.fields "
48+ static internal var fieldParameterName = " list.fields "
4849}
4950
5051extension List : Expandable {
52+ /// Fields that can be expanded on the ``List`` type
5153 public enum Expansions : Expansion {
54+ /// The User object for the list’s owner
5255 case ownerId( fields: Set < User . Field > )
5356
5457 internal var rawValue : String {
@@ -69,7 +72,9 @@ extension List: Expandable {
6972}
7073
7174extension List {
75+ /// Expanded objects included alongside the ``List``
7276 public struct Includes : Codable {
77+ /// The users expanded with this List. Since ``List.Expansions`` contains only `ownerId`, this will contain the expanded owner User object.
7378 public let users : [ User ] ?
7479 }
7580}
0 commit comments