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

Specification format #4

Closed
justinfagnani opened this issue Oct 26, 2019 · 4 comments
Closed

Specification format #4

justinfagnani opened this issue Oct 26, 2019 · 4 comments

Comments

@justinfagnani
Copy link
Collaborator

We probably at least want a JSON Schema file describing the spec, at least to validate tool output and to help generate file readers.

JSON Schema isn't the most human readable format though, do we want another format to develop the spec in and present in the main README?

@bahrus
Copy link

bahrus commented Oct 26, 2019

I would propose TypeScript

@justinfagnani
Copy link
Collaborator Author

justinfagnani commented Oct 28, 2019

@bahrus in what way?

edit: Sorry, I didn't see the link. We've used that tool too for the Polymer analysis format.

@bahrus
Copy link

bahrus commented Oct 28, 2019

Yeah, but on second thought, being that existing JSON Schema's are being extended / compared, it might be better to stick with the unwieldly JSON Schema format as the source format.

I was playing around with this editor, which makes it not too bad.

And there are tools to convert JSON Schema to markdown

So I don't really know what the best format to work with would be.

@justinfagnani
Copy link
Collaborator Author

#9 includes both a pretty readable (IMO) TypeScript definition for the format, and a JSON schema file that's included in the repo. This seems like a practical approach.

One downside is having to sync the schema.json file, but if we make the main artifact a published site rather than the repo contents we can not check in the generated schema.json. Will leave that for a separate issue.

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