From bb233880b1f319e1a911edb80355757e3732645d Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Thu, 5 Feb 2026 15:35:25 +0000 Subject: add json schema --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 1973bfd..e81e102 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,21 @@ The `.gitinfo` file is a simple text file that can be placed in the root directo The `.gitinfo` file uses JSONC (JSON with Comments) format, allowing for easy readability and the inclusion of comments. The file consists of key-value pairs, where each key represents a specific piece of metadata about the repository. +### Validation + +A JSON Schema is available for validating `.gitinfo` files: + +``` +https://raw.githubusercontent.com/zuedev/gitinfo/main/gitinfo.schema.json +``` + +You can reference the schema in your `.gitinfo` file using the `$schema` property for editor autocompletion and validation support. + ### Example `.gitinfo` File ```jsonc { + "$schema": "https://raw.githubusercontent.com/zuedev/gitinfo/main/gitinfo.schema.json", "root": "https://github.com/example/repository", "gitmail": "patches@example.com", "icon": "https://example.com/icon.png", -- cgit v1.2.3