Azure / Azure/apiops

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

Abierto
#684 2 comentarios 0 reacciones 1 asignado Reclamado por @guythetechie Ver en GitHub
Lenguaje dominante
C#
Estrellas
448
Forks
247
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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:

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.