cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a same method name with different tags?

kayalps
New Member

How to use a same method name with different tags?

Hi,
I have a scenario where I have two different tags with same method name. But its throwing compilation error in swagger editor saying that "duplicated mapping key".

/get_property:
 post:
   tags:
        - Car
/get_property:
 post:
   tags:
        - Bike

 
Could someone please help on how to make it possible in yaml?

Thanks

1 REPLY 1
HKosova
Moderator

Re: How to use a same method name with different tags?

Add both tags to the same operation, like so:

/get_property:
  post:
    tags:
      - Car
      - Bike

 


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Top Kudoed Authors