{
"errors": {
"type": [
"The type field is required."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "|a516ca97-4f35ffd51f30acad."
}
Есть ли какая-либо причина, по которой, хотя я не указал BindRequired в своем параметре [FromQuery], он всегда возвращает ошибку, см. ниже. [code]{ "errors": { "type": [ "The type field is required." ] }, "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", "title": "One or more validation errors occurred.", "status": 400, "traceId": "|a516ca97-4f35ffd51f30acad." } [/code] Вот конечная точка: [code] [HttpPost("{imageId}/export", Name = nameof(ExportImage))] [ProducesResponseType(typeof(Business.Realhub.Models.User), StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status400BadRequest)] [ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] public async Task ExportImage([FromRoute] int imageId, [FromQuery] string type, CancellationToken cancellationToken) [/code] Вот моя просьба: [code]POST /v1/images/13898656/export [/code] [img]https://i.sstatic.net/rJ8XO.png[/img]