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

GitHub | cacti77 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 3904#250700190

    GitHub | 6 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