|
|
|
|
|
by FrontAid
1780 days ago
|
|
> As a side note, what do people think about JSON schema? I find it quite verbose and cumbersome Agreed. But if you want to have validation and autocompletion in most editors, it is still the way to go. We use it to validate JSON content files for a CMS [1]. It is a little repetitive in our case (e.g. the `:name`/`:description` keys are repeated), but not that bad. Newer versions of JSON Schema [2] have improved in that respect, but most editors (or plugins) and tooling in general is still based on older versions. So we have to stick with those for a while. [1] https://github.com/frontaid/schema/blob/master/frontaid-sche... [2] https://json-schema.org/specification.html If you have to deal with JSON a lot, you might want to checkout https://www.schemastore.org/json/ which has schemas for a large number of file types. |
|