devcontainers / devcontainers/spec

[proposal] Support yaml as well as jsonc

Open
#203 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
5.7k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

Any interest?

Background:
`jsonc`, aka "JSON with comments", while nicer than plain JSON, is still relatively new and doesn't have full ecosystem support yet. It also has some shortcomings shared with JSON, such as not accepting trailing commas in lists/objects (except on a [per-parser exception](https://github.com/microsoft/vscode/issues/102061) basis).

`yaml` can be limited to a JSON equivalent in terms of data structures it supports, and all (or at least most) of the issues with it were allayed in 1.2+ versions of the spec (such as `on` being parsed as `true` when not quoted). It also reduces the need for as many quotes, commas, open and close braces, and first-class supports comments.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.