Skip to content

Commit

Permalink
fix: recursively parse allOf
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Jan 7, 2025
1 parent 5830081 commit 445174b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@ private static List<RestApiPayloadProperty> GetPayloadProperties(string operatio

var result = new List<RestApiPayloadProperty>();

foreach(var allOfEntry in schema.AllOf)
{
result.AddRange(GetPayloadProperties(operationId, allOfEntry, level + 1));
}

foreach (var propertyPair in schema.Properties)
{
var propertyName = propertyPair.Key;
Expand Down

0 comments on commit 445174b

Please sign in to comment.