Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] Tags are getting added to APIM even though I have not defined them in artifacts>tags

Aperta
#684 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@guythetechie ci sta già lavorando.

Dal 17/10/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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:

Lingua principale
C#
Stelle
448
Fork
247
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/apiops

Tutte le issue di Azure/apiops

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.