Skip to content

[BUG] Export/import schema mismatch breaks JSON import #856

@sgleng

Description

@sgleng

Describe the bug
Exported/saved diagrams use legacy keys (references, areas), but the JSON importer/validator requires relationships and subjectAreas. Importing my exported JSON fails with “The file is missing necessary properties for a diagram.”

To Reproduce

  1. In the editor, create or open a diagram and choose Settings -> Export saved data (I chose MSSQL). You'll get a ZIP file with a json.
  2. In the same app, go to File → Import from → JSON and select the exported file.
  3. See error: “The file is missing necessary properties for a diagram.”

Expected behavior
A diagram exported from the app should import back.

After changing references to relationships and areas to subjectAreas, everything imported fine.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chromium 144.0.7559.114
  • App version/commit: v1.5.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions