Skip to content

Change table component MIME type to "text/csv" #1491

Merged
lochel merged 1 commit intoOpenModelica:maintenance/v2.1from
AxelMatstoms:csv-mimetype
Sep 2, 2025
Merged

Change table component MIME type to "text/csv" #1491
lochel merged 1 commit intoOpenModelica:maintenance/v2.1from
AxelMatstoms:csv-mimetype

Conversation

@AxelMatstoms
Copy link
Copy Markdown
Contributor

Related Issues

This PR resolves #1473

Purpose

The purpose of this PR is to support a subset of the proposed MA CSV standard for stimuli data.

Approach

With this PR, the "correct" MIME type is used for export. Both MIME types ("legacy" application/table, and text/csv) are supported for import, which preserves compatibility with SSPs exported in previous versions of OMSimulator.

Import of SSPs with both MIME types has been tested and work as expected.

With this change OMSimulator will support a subset of the proposed
MA-CSV standard for stimuli data. The proposal requires MIME type
text/csv for csv component, whereas OMSimulator previously used
application/table.

This commit ensures text/csv is used for export of SSPs. Importing SSPs
supports both the previous MIME type (to ensure compatibility with SSPs
exported in previous versions of OMSimulator) and the text/csv MIME
type.
@lochel
Copy link
Copy Markdown
Member

lochel commented Sep 2, 2025

Thanks!

@lochel lochel merged commit c2e1bfd into OpenModelica:maintenance/v2.1 Sep 2, 2025
2 checks passed
@AxelMatstoms AxelMatstoms deleted the csv-mimetype branch September 2, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants