java.lang.ClassCastException: io.swagger.model.Pet cannot be cast to io.swagger.model.Dog

GitHub | cacti77 | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 3904#250700190

    GitHub | 5 months ago | cacti77
    java.lang.ClassCastException: io.swagger.model.Pet cannot be cast to io.swagger.model.Dog

    Root Cause Analysis

    1. java.lang.ClassCastException

      io.swagger.model.Pet cannot be cast to io.swagger.model.Dog

      at io.swagger.api.PetsApiController.petsPost()
    2. io.swagger.api
      PetsApiController.petsPost
      1. io.swagger.api.PetsApiController.petsPost(PetsApiController.java:39)[classes/:na]
      1 frame