Recently, I've answered a specific question, with a request that could be answered fairly easy. At first the question seemed correct and well targeted, so I answered it, with good will. There was even a link of a git issue that he found close to an answer, but not the exactly what he was looking for.
Basically, in a web framework, he wanted to log requests, stating
Result I'm expecting is: {id}/get_all for 1st request and {id}/get_last for 2nd request.
Since it was enough to read the docs, I linked a couple of pages from the official docs saying that the docs contained what he was looking for and to check exactly on the docs which attribute fitted best to his needs. I also began my answer stating that he may not be able to achieve exactly what he was looking for without hacking the framework, but he could get close to what he wanted (there may be prefixes that would be part of the obtained path, e.g. /prefix/1/get_all
).
I thought, this was more than enough for such an answer. I mean, if you don't read the docs (maybe he overlook the pages?) I gladly help you getting on the right path, but I'm not doing the work for you.
After a couple of hours, my answer gets downvoted, with a comment from the user asking for a code snippet (in his words) relevant to his question
. I edited the question, providing an example of what he was looking for and where to edit his code. He then replies, stating that he clearly formed his question, asking for the regex (i.e. {id}/get_all
and not 1/get_all
, which my answer could get). I pointed out in the comment that this was not written but he could reverse match it with a regex.
Now, I understand I probably shouldn't have answered the question since it was poorly written, but it seemed well written at first and the answer was easy, but he's not responding anymore and is keeping the downvote (which I find incorrect and unfair).
It is true that these are just points (-2 to be precise), but I feel I've been treated unfairly, because the answer told explicitly that it was going to get close to what he was looking for. He downvoted immediately my answer as if it was something off-topic. Also, his question was clear and my answer provided a solution to his problem, though he claims he clearly stated something different.
TL;DR
So, my question is: what should I do in such a case? I've been reading a post here that brought me to think to ask here.
When is it justifiable to downvote a question? I've also looked on the stackoverflow's help page, without finding an answer. It's silly to be pissed off about such a little thing, I know, but I can't help ignoring it and going on, especially because OP downvoted immediately my answer.
Are flags the right approach in this case and possibly other similar ones?