Skip to content

Commit c86e65a

Browse files
committed
Better PM
1 parent 6cfabde commit c86e65a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/SwaggerProvider.DesignTime/v3/DefinitionCompiler.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,21 +247,21 @@ type DefinitionCompiler(schema: OpenApiDocument, provideNullable) as this =
247247

248248
// Combine composite schemas
249249
let schemaObjProperties =
250-
match schemaObj.AllOf.Count with
251-
| c when c > 0 ->
250+
match schemaObj.AllOf.Count > 0 with
251+
| true ->
252252
schemaObj.AllOf
253253
|> Seq.append [schemaObj]
254254
|> Seq.collect (fun x -> x.Properties)
255-
| _ -> schemaObj.Properties
255+
| false -> schemaObj.Properties
256256
let schemaObjRequired =
257-
match schemaObj.AllOf.Count with
258-
| c when c > 0 ->
257+
match schemaObj.AllOf.Count > 0 with
258+
| true ->
259259
schemaObj.AllOf
260260
|> Seq.append [schemaObj]
261261
|> Seq.collect (fun x -> x.Required)
262262
|> System.Collections.Generic.HashSet
263263
:> System.Collections.Generic.ISet<string>
264-
| _ -> schemaObj.Required
264+
| false -> schemaObj.Required
265265

266266
// Generate fields and properties
267267
let members =

0 commit comments

Comments
 (0)