The comic fantasy sub-genre is based on humor.
It can be a sarcastic take off of a classic like Bored of the Rings written by Henry N. Beard and Douglas C. Kenney, or a light comedy that introduces the reader to a hilarious world like A Spell for Chameleon and Xanth by Piers Anthony.
Other authors are Terry Pratchett or A Recipe For Disaster by Ardyth De Bruyn.