Skip to content

Commit

Permalink
Fix swagger validation error when used FileResponseTypeFilter attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarincev committed Jan 30, 2017
1 parent 24bf18b commit 389e9fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VirtoCommerce.Platform.Web/Swagger/FileResponseTypeFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public void Apply(Operation operation, SchemaRegistry schemaRegistry, ApiDescrip
Schema responseSchema = new Schema { format = "byte", type = "file" };

operation.responses[((int)HttpStatusCode.OK).ToString()] = new Response
{
{
description = "OK",
schema = responseSchema
};
}
Expand Down

0 comments on commit 389e9fa

Please sign in to comment.