@@ -95,13 +95,13 @@ extension FakeClient {
9595 -> Operations . createEmail . Output
9696 {
9797 return switch input. body {
98- case let . json( json) where json. email == Self . badEmail:
98+ case . json( let json) where json. email == Self . badEmail:
9999 . badRequest( . init( body: . json( . init( ) ) ) )
100100
101- case let . json( json) where json. email == Self . usedEmail:
101+ case . json( let json) where json. email == Self . usedEmail:
102102 . conflict( . init( body: . json( . init( ) ) ) )
103103
104- case let . json( json) :
104+ case . json( let json) :
105105 . created(
106106 . init(
107107 body: . json(
@@ -139,7 +139,7 @@ extension FakeClient {
139139 -> Operations . verifyEmail . Output
140140 {
141141 return switch input. body {
142- case let . json( json) where json. code == Self . goodSecret:
142+ case . json( let json) where json. code == Self . goodSecret:
143143 . ok( . init( ) )
144144
145145 case . json:
@@ -257,10 +257,10 @@ extension FakeClient {
257257 -> Operations . createNewToken . Output
258258 {
259259 return switch input. body {
260- case let . json( json) where Self . goodIdentifers. contains ( json. identifier) :
260+ case . json( let json) where Self . goodIdentifers. contains ( json. identifier) :
261261 . ok( . init( ) )
262262
263- case let . json( json) where json. identifier == Self . passwordUsername:
263+ case . json( let json) where json. identifier == Self . passwordUsername:
264264 . forbidden( . init( body: . json( . init( ) ) ) )
265265
266266 case . json:
@@ -272,7 +272,7 @@ extension FakeClient {
272272 -> Operations . createToken . Output
273273 {
274274 return switch input. body {
275- case let . json( json)
275+ case . json( let json)
276276 where Self . goodIdentifers. contains ( json. identifier) && json. secret == Self . goodSecret:
277277 . created( . init( body: . plainText( . init( stringLiteral: Self . goodToken) ) ) )
278278
@@ -317,25 +317,25 @@ extension FakeClient {
317317 -> Operations . createUser . Output
318318 {
319319 return switch input. body {
320- case let . json( json) where json. username == Self . badUsername:
320+ case . json( let json) where json. username == Self . badUsername:
321321 . badRequest( . init( body: . json( . init( ) ) ) )
322322
323- case let . json( json) where json. username == Self . reservedUsername:
323+ case . json( let json) where json. username == Self . reservedUsername:
324324 . forbidden( . init( body: . json( . init( ) ) ) )
325325
326- case let . json( json) where json. username == Self . usedUsername:
326+ case . json( let json) where json. username == Self . usedUsername:
327327 . conflict( . init( body: . json( . init( ) ) ) )
328328
329- case let . json( json) where json. username == Self . passwordUsername:
329+ case . json( let json) where json. username == Self . passwordUsername:
330330 . forbidden( . init( body: . json( . init( ) ) ) )
331331
332- case let . json( json) where json. email == Self . badEmail:
332+ case . json( let json) where json. email == Self . badEmail:
333333 . badRequest( . init( body: . json( . init( ) ) ) )
334334
335- case let . json( json) where json. email == Self . usedEmail:
335+ case . json( let json) where json. email == Self . usedEmail:
336336 . conflict( . init( body: . json( . init( ) ) ) )
337337
338- case let . json( json) :
338+ case . json( let json) :
339339 . created( . init( body: . json( . make( named: json. username) ) ) )
340340 }
341341 }
@@ -377,10 +377,10 @@ extension FakeClient {
377377 let largeImage = try await String ( collecting: Self . largeImageBody, upTo: 64 )
378378
379379 return switch input. body {
380- case let . binary( binary) where try await String ( collecting: binary, upTo: 64 ) == normalImage:
380+ case . binary( let binary) where try await String ( collecting: binary, upTo: 64 ) == normalImage:
381381 . ok( . init( body: . plainText( . init( stringLiteral: Self . avatar) ) ) )
382382
383- case let . binary( binary) where try await String ( collecting: binary, upTo: 64 ) == largeImage:
383+ case . binary( let binary) where try await String ( collecting: binary, upTo: 64 ) == largeImage:
384384 . contentTooLarge( . init( ) )
385385
386386 case . binary:
@@ -392,7 +392,7 @@ extension FakeClient {
392392 -> Operations . setCurrentUserBio . Output
393393 {
394394 return switch input. body {
395- case let . plainText( text) :
395+ case . plainText( let text) :
396396 . ok( . init( body: . plainText( text) ) )
397397 }
398398 }
0 commit comments