Skip to content

Commit

Permalink
Allow mime types that contain parameters to be identified as non bina…
Browse files Browse the repository at this point in the history
…ry (#2081)
  • Loading branch information
DanielGunnars authored and RicoSuter committed Apr 3, 2019
1 parent 344c348 commit a1e7eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NSwag.Core/SwaggerParameter.cs
Expand Up @@ -203,6 +203,6 @@ public override bool IsNullable(SchemaType schemaType)
public bool IsBinaryBodyParameter => !IsXmlBodyParameter &&
Kind == SwaggerParameterKind.Body &&
((SwaggerOperation)Parent).ActualConsumes?.Any() == true &&
((SwaggerOperation)Parent).ActualConsumes?.Contains("application/json") != true;
((SwaggerOperation)Parent).ActualConsumes?.Any(p => p.Contains("application/json")) == false;
}
}

0 comments on commit a1e7eec

Please sign in to comment.