Skip to content

Commit

Permalink
Better PM
Browse files Browse the repository at this point in the history
  • Loading branch information
QrystaL committed Jan 14, 2025
1 parent 6cfabde commit c86e65a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SwaggerProvider.DesignTime/v3/DefinitionCompiler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -247,21 +247,21 @@ type DefinitionCompiler(schema: OpenApiDocument, provideNullable) as this =

// Combine composite schemas
let schemaObjProperties =
match schemaObj.AllOf.Count with
| c when c > 0 ->
match schemaObj.AllOf.Count > 0 with
| true ->
schemaObj.AllOf
|> Seq.append [schemaObj]
|> Seq.collect (fun x -> x.Properties)
| _ -> schemaObj.Properties
| false -> schemaObj.Properties
let schemaObjRequired =
match schemaObj.AllOf.Count with
| c when c > 0 ->
match schemaObj.AllOf.Count > 0 with
| true ->
schemaObj.AllOf
|> Seq.append [schemaObj]
|> Seq.collect (fun x -> x.Required)
|> System.Collections.Generic.HashSet
:> System.Collections.Generic.ISet<string>
| _ -> schemaObj.Required
| false -> schemaObj.Required

// Generate fields and properties
let members =
Expand Down

0 comments on commit c86e65a

Please sign in to comment.