Skip to content

[Bug] Json imported from OpenAPI is saved differently after file is opened in editor #322

@lbenedetto

Description

@lbenedetto

After import, json block looks like this:

```void
---
type: "json_body"
attrs:
  uid: "e72a8c0e-eb3b-45ab-ab45-796f9b546771"
  importedFrom: ""
  contentType: "json"
  body: "{

    \  \"startDateInclusive\": \"2026-04-20\",

    \  \"endDateExclusive\": \"2026-04-20\",

    \  \"simulation\": false,

    \  \"forced\": false

    }"
---
```

After opening the file and saving without changes, it looks like this (significantly better)

```void
---
type: json_body
attrs:
  uid: e72a8c0e-eb3b-45ab-ab45-796f9b546771
  body: |-
    {
      "startDateInclusive": "2026-04-20",
      "endDateExclusive": "2026-04-20",
      "simulation": false,
      "forced": false
    }
  importedFrom: ""
---
```

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions