Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Mimetype set in LanguageInfo #100

Open
j-vm opened this issue Jan 10, 2024 · 1 comment
Open

Feature request: Mimetype set in LanguageInfo #100

j-vm opened this issue Jan 10, 2024 · 1 comment

Comments

@j-vm
Copy link

j-vm commented Jan 10, 2024

I am currently trying to create a VTL Language Server, and running into a similar issue as here

For it's integration with Jupyter Lab and possibly other IDEs, I believe the server called is based on the mimetype returned by the active kernel

I would like to further populate the LanguageInfo to additionally include mimetype as text/vtl instead of the current default of text/plain

@jornfranke
Copy link
Contributor

jornfranke commented Jan 10, 2024

A good proposal.

Since "text/vtl" is not an officially registered mimetype we need to name it according to the MIME standard a bit differently.

I did not find any mimetype in the SDMX VTL Standard. However for the format SDMX-CSV they propose:

application/vnd.sdmx.data+csv; version=1.0.0

Using the same convention we could go for:

application/vnd.sdmx.vtl; version=2.0.0

Seeing also other examples for application/ (cf. https://en.wikipedia.org/wiki/Media_type#Common_examples) this can make sense.

Maybe the authors of Trevas have an opinion on this?

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

No branches or pull requests

2 participants