Didn’t you discuss this before you were married? I would never tell somebody to get a divorce, that’s their personal decision, but if I had wanted to have children and my spouse did not, I would. If you are fine not having children and don’t think you will later regret it than that’s good.
Being told you can’t have children, when you truly want them, would be a really sad thing.
He said he wanted kids when we were going out but BACKED OUT after we were married. In fact after we were married I found the sabotaged prophylactics...