diff --git a/gitdeps.schema.json b/gitdeps.schema.json new file mode 100644 index 0000000..0456be8 --- /dev/null +++ b/gitdeps.schema.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://raw.githubusercontent.com/Nelonn/gitdeps/main/gitdeps.schema.json", + "title": "gitdeps", + "description": "Simplified git submodules", + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri" + }, + "branch": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "commit": { + "type": "string", + "pattern": "^[0-9a-f]{40}$" + } + }, + "required": ["url"], + "oneOf": [ + { + "required": ["branch"] + }, + { + "required": ["tag"] + }, + { + "required": ["commit"] + } + ], + "additionalProperties": false + } +} \ No newline at end of file