[BUG] Tags are getting added to APIM even though I have not defined them in artifacts>tags
@guythetechie is already working on this.
Since Oct 17, 2024.
Assessment
This issue has not been assessed yet.
Description
Release version
v6.0.1
Describe the bug
Hello Team,
I noticed that in my APIM instance tags were getting added even though I have no tags defined in the repo.
On further investigation, I found that when the specifications.yaml file has tags as part of the open api definition properties like below example:
openapi: 3.0.1
info:
title: Test API Books
description: Books API
version: v1
paths:
/list-all-comedy-books:
get:
tags:
- comedyBooks
responses:
'200':
description: Success
content:
application/json:
--
then publisher is creating this Tag in APIM, in this example, i would see a tag called comedyBooks added to APIM.
Expected behavior
Tag is not added to apim unless explicitly defined under artifacts>tags folder
Actual behavior
Tag name is getting pulled from specifications file and being added to the API Tags in APIM.
Reproduction Steps
Create an open api spec with a tag value like below and then publish this to APIM.
openapi: 3.0.1
info:
title: Test API Books
description: Books API
version: v1
paths:
/list-all-comedy-books:
get:
tags:
- comedyBooks
responses:
'200':
description: Success
content:
application/json:
- Dominant language
- C#
- Stars
- 448
- Forks
- 247
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/apiops
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
Difficulty 2/5 1-2 days Newbie friendliness 75/100
Altinn/altinn-auth#4143 ·
-
.NET Flaky Test Testing Tests
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
getsentry/sentry-dotnet#5617 · 1 comment ·
-
:watch: Not Triaged dotnet-fsharp/svc
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Client customer-reported needs-team-attention question Service Attention WebPubSub
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Azure/azure-sdk-for-net#63292 · 3 comments · 1 reaction ·