forked from loafle/openapi-generator-original
Fix warning when building because of the missing documentation (#15543)
This commit is contained in:
parent
63ac3e1039
commit
842ca3db69
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace {{packageName}}.Formatters
|
namespace {{packageName}}.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace {{packageName}}.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Formatters
|
namespace Org.OpenAPITools.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Formatters
|
namespace Org.OpenAPITools.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Formatters
|
namespace Org.OpenAPITools.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Formatters
|
namespace Org.OpenAPITools.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Formatters
|
namespace Org.OpenAPITools.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Formatters
|
namespace Org.OpenAPITools.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Formatters
|
namespace Org.OpenAPITools.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Formatters
|
namespace Org.OpenAPITools.Formatters
|
||||||
{
|
{
|
||||||
// Input Type Formatter to allow model binding to Streams
|
/// <inheritdoc />
|
||||||
public class InputFormatterStream : InputFormatter
|
public class InputFormatterStream : InputFormatter
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
public InputFormatterStream()
|
public InputFormatterStream()
|
||||||
{
|
{
|
||||||
SupportedMediaTypes.Add("application/octet-stream");
|
SupportedMediaTypes.Add("application/octet-stream");
|
||||||
SupportedMediaTypes.Add("image/jpeg");
|
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)
|
protected override bool CanReadType(Type type)
|
||||||
{
|
{
|
||||||
if (type == typeof(Stream))
|
if (type == typeof(Stream))
|
||||||
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
|
|
||||||
{
|
|
||||||
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user