Skip to content

Convert spec to yaml#246

Merged
lightclient merged 3 commits intoethereum:mainfrom
lightclient:convert-to-yaml
Jun 23, 2022
Merged

Convert spec to yaml#246
lightclient merged 3 commits intoethereum:mainfrom
lightclient:convert-to-yaml

Conversation

@lightclient
Copy link
Copy Markdown
Member

I think changing the spec to be defined in YAML, rather than JSON, is an important step towards making it easier to write plain English descriptions of the API. Writing longer form text in JSON is pretty much out of the question. Additionally, YAML gives us the ability to add comments around certain parts of the spec. I have wanted this a few times in a weird schema definition to explain why the decision was made.

@MicahZoltu
Copy link
Copy Markdown

For comments, you could have just added a c at the end of the file extension (jsonc). Multiline strings I don't think have a good solution though.

@lightclient lightclient merged commit 70c5668 into ethereum:main Jun 23, 2022
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