Skip to content

Commit

Permalink
Update RequestBody.cs (Azure#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
olydis authored Nov 8, 2017
1 parent e524d5b commit 981552c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/RequestBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public IEnumerable<SwaggerParameter> AsParameters()
Description = prop.Value.Description,
In = ParameterLocation.FormData,
Name = prop.Key,
IsRequired = schema.Required.Contains(prop.Key),
IsRequired = schema.Required?.Contains(prop.Key) ?? false,
Schema = prop.Value,
Extensions = schema.Extensions
});
Expand All @@ -68,4 +68,4 @@ public IEnumerable<SwaggerParameter> AsParameters()

public bool Required { get; set; }
}
}
}

0 comments on commit 981552c

Please sign in to comment.