Azure / Azure/apiops

[BUG] Publisher adding characters when API specification contains ° or ³

Offen
#556 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
448
Forks
247
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### 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`.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, das Problem mit der bereitgestellten specification.yaml über APIOps Toolkit for Azure APIM v5.1.4 zu reproduzieren, und verfolge anschließend, wie der Publisher mit Schema-Text und Zeichenkodierung umgeht. Erledigt ist die Aufgabe, wenn veröffentlichte Schema-Beschreibungen ° und ³ bewahren, ohne  hinzuzufügen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
api, backend-api-design
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.