Hi,

This might be a trivial question but I still find it odd. So say I have a 
GET operation that expects an integer 'FromRoute' something like:

[HttpGet]
[Route("/api/nodes/{id}")]
[SwaggerOperation("FindNodeById")]
[SwaggerResponse(200, type: typeof(Node))]
public virtual IActionResult FindNodeById([FromRoute] int id)

but when I give it a string, the entire server crashes. Now I would expect 
to have an unexpected behavior but is there no type checking?
basically what this means is that a "user" can maliciously or accidentally 
crash the entire server. is the type checking my responsibility?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to