Skip to content

Commit

Permalink
Added json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelonn committed Jul 9, 2024
1 parent e37b4fd commit e17693f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions gitdeps.schema.json
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit e17693f

Please sign in to comment.