[BUG] Publisher adding characters when API specification contains ° or ³
- Lingua principale
- C#
- Stelle
- 448
- Fork
- 247
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Release version
APIOps Toolkit for Azure APIM v5.1.4
### Describe the bug
When publishing an API specification that contains ° or ³, the final result of our schema definitions contains `°C` instead of `°C` and `³` instead of `³`.
Our specification.yaml file contains the following lines:
components:
schemas:
Conditions:
type: object
properties:
temperature:
type: number
description: Temperature (°C)
gasContent:
type: number
description: Content of gas (mg/Nm³)
description: Conditions
which results in a definition in APIM with schema:
{
"type": "object",
"properties": {
"temperature": {
"type": "number",
"description": "Temperature (°C)"
},
"gasContent": {
"type": "number",
"description": "Content of gas (mg/Nm³)"
}
},
"description": "Conditions"
}
### Expected behavior
When providing a specification that contains `°` or `³`, the schema published in API Management contains `°` and `³` without any additional characters.
### Actual behavior
When providing a specification that contains `°` or `³`, the schema published in API Management contains `°` and `³`.
### Reproduction Steps
Publish an API specification with a schema that contains a special character such as `°` or `3`.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il problema con la specification.yaml fornita tramite APIOps Toolkit for Azure APIM v5.1.4, quindi traccia il modo in cui il publisher gestisce il testo dello schema e la codifica dei caratteri. Il lavoro è completato quando le descrizioni dello schema pubblicate preservano ° e ³ senza aggiungere Â.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- api, backend-api-design
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100