-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathrepos.schema.json
50 lines (50 loc) · 1.53 KB
/
repos.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"$id": "https://github.com/jupyter/accessibility/tree/master/repos.schema.json",
"$schema": "http://json-schema.org/draft-07/schema",
"description": "a schema for describing the jupyter/accessibility Binder and GitHub actions",
"$ref": "#/definitions/top-level",
"definitions": {
"top-level": {
"description": "a description of a local development and testing environment",
"type": "object",
"properties": {
"repos": {
"description": "a set of repositories identified by URL",
"type": "object",
"patternProperties": {
"https://.*": {
"$ref": "#/definitions/repo"
}
}
}
}
},
"repo": {
"description": "a repository that will be checked out, built, and tested",
"required": ["refs"],
"properties": {
"refs": {
"$ref": "#/definitions/ref"
}
}
},
"ref": {
"description": "a point in distributed version control history",
"required": ["ref"],
"properties": {
"ref": {
"description": "a human-readable reference to a mutable point in time in a repo",
"type": "string",
"minLength": 1,
"examples": ["HEAD", "main", "3.0.x", "pull/123/head"]
},
"commit": {
"description": "a substring of the cryptographic reference to a point in development contained in the `ref`",
"type": "string",
"minLength": 7,
"pattern": "[a-z\\d]{7,}"
}
}
}
}
}