|
7 | 7 |
|
8 | 8 | schema_url = "http://json-schema.org/draft-07/schema" |
9 | 9 |
|
10 | | -platformProperties = { |
| 10 | +platform_properties = { |
11 | 11 | "architecture": {"type": "string"}, |
12 | 12 | "os": {"type": "string"}, |
13 | 13 | "os.version": {"type": "string"}, |
14 | 14 | "variant": {"type": "string"}, |
15 | 15 | } |
16 | 16 |
|
17 | | -manifestMetaProperties = { |
| 17 | +manifest_meta_properties = { |
18 | 18 | "mediaType": {"type": "string"}, |
19 | | - "platform": {"type": "object", "properties": platformProperties}, |
| 19 | + "platform": {"type": "object", "properties": platform_properties}, |
20 | 20 | } |
21 | 21 |
|
22 | | -indexProperties = { |
| 22 | +index_properties = { |
23 | 23 | "schemaVersion": {"type": "number"}, |
24 | 24 | "mediaType": {"type": "string"}, |
25 | 25 | "subject": {"type": ["null", "object"]}, |
26 | | - "manifests": {"type": "array", "items": manifestMetaProperties}, |
| 26 | + "manifests": {"type": "array", "items": manifest_meta_properties}, |
27 | 27 | "annotations": {"type": ["object", "null", "array"]}, |
28 | 28 | } |
29 | 29 |
|
|
37 | 37 | "manifests", |
38 | 38 | "mediaType", |
39 | 39 | ], |
40 | | - "properties": indexProperties, |
| 40 | + "properties": index_properties, |
41 | 41 | "additionalProperties": True, |
42 | 42 | } |
43 | 43 |
|
44 | | -EmptyPlatform = { |
| 44 | +empty_platform = { |
45 | 45 | "architecture": "", |
46 | 46 | "os": "gardenlinux", |
47 | 47 | "os.version": "experimental", |
48 | 48 | } |
49 | 49 |
|
50 | | -EmptyManifestMetadata = { |
| 50 | +empty_manifest_metadata = { |
51 | 51 | "mediaType": "application/vnd.oci.image.manifest.v1+json", |
52 | 52 | "digest": "", |
53 | 53 | "size": 0, |
54 | 54 | "annotations": {}, |
55 | 55 | } |
56 | 56 |
|
57 | | -EmptyIndex = { |
| 57 | +empty_index = { |
58 | 58 | "schemaVersion": 2, |
59 | 59 | "mediaType": "application/vnd.oci.image.index.v1+json", |
60 | 60 | "manifests": [], |
|
0 commit comments