Change table component MIME type to "text/csv" #1491
Merged
lochel merged 1 commit intoOpenModelica:maintenance/v2.1from Sep 2, 2025
Merged
Change table component MIME type to "text/csv" #1491lochel merged 1 commit intoOpenModelica:maintenance/v2.1from
lochel merged 1 commit intoOpenModelica:maintenance/v2.1from
Conversation
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.
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.