Correct usage of “mapping” with discriminator of openapi

后端 未结 0 2072
攒了一身酷
攒了一身酷 2021-02-20 00:34

I have an endpoint that takes an id. That id fetches something: either a Dog or a Cat; and returns it (as Pet).. It looks like this:

components:
  schemas:
    Pe         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题