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

Index should use a common structured format (eg. JSON) #8

Closed
lrosenthol opened this issue Nov 17, 2016 · 3 comments
Closed

Index should use a common structured format (eg. JSON) #8

lrosenthol opened this issue Nov 17, 2016 · 3 comments

Comments

@lrosenthol
Copy link

lrosenthol commented Nov 17, 2016

Having the index file be in a text-like format that (a) doesn't specify or mandate an encoding and (b) no provisions for proper data typing, (c) requires writing a custom parser and (d) will need a newly defined MIME type (see issue #9 ) - doesn't seem like a good idea.

I recommend instead that the index be a well defined JSON grammar. That way standard parsers can be used and there is no question about encodings, data types, etc.

@bmeck
Copy link
Collaborator

bmeck commented Dec 29, 2016

@lrosenthol are there any use cases you can think of that are not solved by HTTP style header mappings that JSON would be better at. I am hesitant to have custom JSON properties but SourceMaps have precedent of allowing this by x_* as a prefix. I also am concerned about deeply nested objects but with any custom header it would be possible to make the value itself an object, so that seems fine.

If you want to write up a schema that would be great :).

@lrosenthol
Copy link
Author

lrosenthol commented Jan 3, 2017 via email

@jyasskin
Copy link
Member

#36 uses a CDDL grammar to define the index, so I think this is fixed.

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

3 participants