@@ -113,7 +113,7 @@ enum SiteURL: Resourceable, Sendable {
113113 case blogPost( _ slug: Parameter < String > )
114114 case buildMonitor
115115 case builds( _ id: Parameter < UUID > )
116- case collections( _ name : Parameter < String > )
116+ case collections( _ key : Parameter < String > )
117117 case docs( Docs )
118118 case faq
119119 case home
@@ -122,7 +122,7 @@ enum SiteURL: Resourceable, Sendable {
122122 case keywords( _ keyword: Parameter < String > )
123123 case package ( _ owner: Parameter < String > , _ repository: Parameter < String > , PackagePathComponents ? )
124124 case packageCollectionAuthor( _ owner: Parameter < String > )
125- case packageCollectionCustom( _ name : Parameter < String > )
125+ case packageCollectionCustom( _ key : Parameter < String > )
126126 case packageCollections
127127 case privacy
128128 case readyForSwift6
@@ -171,11 +171,11 @@ enum SiteURL: Resourceable, Sendable {
171171 case . buildMonitor:
172172 return " build-monitor "
173173
174- case let . collections( . value( name ) ) :
175- return " collections/ \( name . urlPathEncoded) "
174+ case let . collections( . value( key ) ) :
175+ return " collections/ \( key . urlPathEncoded) "
176176
177177 case . collections( . key) :
178- fatalError ( " path must not be called with a name parameter " )
178+ fatalError ( " invalid path: \( self ) " )
179179
180180 case let . docs( next) :
181181 return " docs/ \( next. path) "
@@ -215,8 +215,8 @@ enum SiteURL: Resourceable, Sendable {
215215 case . packageCollectionAuthor( . key) :
216216 fatalError ( " invalid path: \( self ) " )
217217
218- case let . packageCollectionCustom( . value( name ) ) :
219- return " collections/ \( name . urlPathEncoded) /collection.json "
218+ case let . packageCollectionCustom( . value( key ) ) :
219+ return " collections/ \( key . urlPathEncoded) /collection.json "
220220
221221 case . packageCollectionCustom( . key) :
222222 fatalError ( " invalid path: \( self ) " )
@@ -298,7 +298,7 @@ enum SiteURL: Resourceable, Sendable {
298298 fatalError ( " pathComponents must not be called with a value parameter " )
299299
300300 case . collections( . key) :
301- return [ " collections " , " :name " ]
301+ return [ " collections " , " :key " ]
302302
303303 case . collections( . value) :
304304 fatalError ( " pathComponents must not be called with a value parameter " )
@@ -325,7 +325,7 @@ enum SiteURL: Resourceable, Sendable {
325325 fatalError ( " pathComponents must not be called with a value parameter " )
326326
327327 case . packageCollectionCustom( . key) :
328- return [ " collections " , " :name " , " collection.json " ]
328+ return [ " collections " , " :key " , " collection.json " ]
329329
330330 case . packageCollectionCustom( . value) :
331331 fatalError ( " pathComponents must not be called with a value parameter " )
0 commit comments