Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning when building because of the missing documentation #15543

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;

namespace {{packageName}}.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ namespace {{packageName}}.Formatters

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@

namespace Org.OpenAPITools.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ protected override bool CanReadType(Type type)

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@

namespace Org.OpenAPITools.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ protected override bool CanReadType(Type type)

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@

namespace Org.OpenAPITools.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ protected override bool CanReadType(Type type)

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@

namespace Org.OpenAPITools.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ protected override bool CanReadType(Type type)

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@

namespace Org.OpenAPITools.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ protected override bool CanReadType(Type type)

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@

namespace Org.OpenAPITools.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ protected override bool CanReadType(Type type)

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@

namespace Org.OpenAPITools.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ protected override bool CanReadType(Type type)

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@

namespace Org.OpenAPITools.Formatters
{
// Input Type Formatter to allow model binding to Streams
/// <inheritdoc />
public class InputFormatterStream : InputFormatter
{
/// <inheritdoc />
public InputFormatterStream()
{
SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg");
}

/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}

/// <inheritdoc />
protected override bool CanReadType(Type type)
{
if (type == typeof(Stream))
Expand All @@ -23,10 +31,5 @@ protected override bool CanReadType(Type type)

return false;
}

public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
}
}