Skip to content

Commit

Permalink
refactor: Update schema to match new JSON root
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Jan 17, 2024
1 parent e4d31d7 commit a2e133b
Showing 1 changed file with 45 additions and 37 deletions.
82 changes: 45 additions & 37 deletions .github/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,53 @@
"title": "Verified mods manifesto",
"description": "A list of mods that can be automatically downloaded by the Northstar client.",
"type": "object",
"patternProperties": {
"^[A-Za-z._0-9]+": {
"properties": {
"thunderstore": {
"type": "object",
"properties": {
"DependencyPrefix": {
"type": "string",
"pattern": "^([A-Za-z._0-9]+)-([A-Za-z._0-9]+)$"
},
"Repository": {
"type": "string",
"pattern": "^https://"
},
"Versions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Version": {
"type": "string",
"pattern": "^(([0-9]+)\\.([0-9]+)\\.([0-9]+))$"
},
"Checksum": {
"type": "string",
"pattern": "^([0-9a-f]+)$",
"minLength": 64,
"maxLength": 64
},
"CommitHash": {
"type": "string",
"pattern": "^([0-9a-f]+)$",
"minLength": 40,
"maxLength": 40
}
"patternProperties": {
"^[A-Za-z._0-9]+": {
"type": "object",
"properties": {
"DependencyPrefix": {
"type": "string",
"pattern": "^([A-Za-z._0-9]+)-([A-Za-z._0-9]+)$"
},
"required": [ "Version", "Checksum", "CommitHash" ]
}
"Repository": {
"type": "string",
"pattern": "^https://"
},
"Versions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Version": {
"type": "string",
"pattern": "^(([0-9]+)\\.([0-9]+)\\.([0-9]+))$"
},
"Checksum": {
"type": "string",
"pattern": "^([0-9a-f]+)$",
"minLength": 64,
"maxLength": 64
},
"CommitHash": {
"type": "string",
"pattern": "^([0-9a-f]+)$",
"minLength": 40,
"maxLength": 40
}
},
"required": [ "Version", "Checksum", "CommitHash" ]
}
}
},
"required": [ "DependencyPrefix", "Repository", "Versions" ]
}
},
"required": [ "DependencyPrefix", "Repository", "Versions" ]
}
}
}
},
"required": [
"thunderstore"
]
}

0 comments on commit a2e133b

Please sign in to comment.