Dragons are fictional, so they can be whatever they want to be.I don't think dragons are coldblooded anyway. In fact they're quite the opposite, they produce more heat than any other species. I think they just don't overheat or something, must be some special biological trick. Otherwise they'd risk overheating themselves.
