google / google/jsonnet

Support for user defined types

Open
#605 21 comments 20 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

It would be nice to add some support for stronger typing of objects. Ideally this would manifest as runtime validation of visible fields after objects are fully reified. You could probably get pretty far implementing this functionality in a library with assert. Another alternative is to write a library that does [JSON Schema](https://json-schema.org/) validation, but the definition language is rather verbose.

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.