2

Jsonnet seems like a great tool for config management, and I was wondering if there's a way to generate json-schema using jsonnet?

I'm particularly interested in this because tools like react-jsonschema-form and json-editor requires json-schema as input and doesn't support jsonnet files.

rrlamichhane
  • 1,435
  • 2
  • 18
  • 34
  • JSON Schema is also just JSON. There are many projects which use Jsonnet to make JSON Schema. Think of Jsonnet like templating for JSON. – Relequestual Nov 26 '20 at 09:49
  • @Relequestual can you please recommend or name a couple of projects that use Jsonnet to generate JSON Schema? I'm struggling to find any. – rrlamichhane Nov 28 '20 at 02:39
  • 2
    UK Gov content management system. Their schemas and jsonnet files are open: https://github.com/alphagov/govuk-content-schemas/blob/master/formats/answer.jsonnet for example – Relequestual Nov 28 '20 at 21:46

0 Answers0