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

add mime types for marckdown, latex, vega, geojson, fasta #92

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

davidB
Copy link

@davidB davidB commented Oct 14, 2018

Thoses mime-types are used in Machine Learning community (Jupyter, JupyterLab).

Please review, I'm not sure to do the right changes.

Thanks.

FYI I started a PR to use mime with https://github.com/google/evcxr

PS: I also note that the code is not formatted with rustfmt (I had to disable format-on-save on my editor)

@davidB
Copy link
Author

davidB commented Dec 24, 2018

can you merge the PR ?

Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I missed the notification before! We can certainly these types in.

VEGALITE_V2, "vnd.vegalite.v2+json";
VEGALITE_V3, "vnd.vegalite.v3+json";
PLOTY, "vnd.plotly.v1+json";
GEOJSON, "geo+json";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these new Name constants are actually a subtype+suffix. They should probably be removed, because this would be confusing:

// assertion fails
assert_eq!(APPLICATION_GEOJSON.subtype(), GEOJSON);

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not sur about adding them in the section "common application/*", may be could remove them all (there are not so common.

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