Missing support for pulling formatted ("beautified") Json
- Vorherrschende Sprache
- C#
- Sterne
- 0
- Forks
- 7
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
#### Description:
Json that is entirely formatted (beautified) or partly formatted is not read correctly by the Serialized, and therefore the File adapter fails the Pull. This only worked a long time ago so it could be considered a "new feature" or a bug depending on how you want to see it.
#### Steps to reproduce:
Try Pulling the following json file:
[objects_beautified.json](https://github.com/user-attachments/files/15873108/objects_beautified.json)
This used to work at [this stage](https://github.com/BHoM/File_Toolkit/pull/86#issuecomment-724085540) but has been considered an "extra" for a long time so it was not retained as a working feature following later changes.
#### Expected behaviour:
Much of this is to do with how our Serializer work and if it supports formatted text. Standard Newtonsoft does, but I always had trouble with ours.
#### Test file(s):
Beitragsleitfaden
Rechercherichtung
Beginne damit, einen Pull mit der angehängten objects_beautified.json nachzustellen, und verfolge dann, wie der File-Adapter formatierte Eingaben an die Serialized-Komponente weitergibt; es werden keine Repository-Dateien oder Tests genannt. Als abgeschlossen gilt, dass sowohl vollständig als auch teilweise formatiertes JSON von Pull erfolgreich gelesen wird und eine Regressionstestabdeckung für das bereitgestellte Beispiel vorhanden ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, json
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100