|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$defs": { |
| 4 | + "synchronizer": { |
| 5 | + "type": "object", |
| 6 | + "required": [ "chainIdSuffix", "migrationId", "version" ], |
| 7 | + "additionalProperties": false, |
| 8 | + "properties": { |
| 9 | + "chainIdSuffix": { "type": "string", "minLength": 1 }, |
| 10 | + "migrationId": { "type": "integer", "minimum": 0, "maximum": 9 }, |
| 11 | + "version": { "type": "string", "minLength": 1 } |
| 12 | + } |
| 13 | + }, |
| 14 | + "digest": { |
| 15 | + "type": "object", |
| 16 | + "required": [ "type", "value" ], |
| 17 | + "additionalProperties": false, |
| 18 | + "properties": { |
| 19 | + "type": { "type": "string", "enum": ["md5", "sha1", "sha256"] }, |
| 20 | + "value": { "type": "string", "minLength": 1 } |
| 21 | + } |
| 22 | + } |
| 23 | + }, |
| 24 | + "type": "object", |
| 25 | + "required": [ "resources", "nginxImage", "contentType" ], |
| 26 | + "properties": { |
| 27 | + "nginxImage": { |
| 28 | + "type": "string", |
| 29 | + "description": "The Docker image to use for Nginx. Defaults to 'nginx:latest' if not present." |
| 30 | + }, |
| 31 | + "contentType": { |
| 32 | + "type": "string", |
| 33 | + "description": "The content type for the Nginx server. Defaults to 'application/json' if not present." |
| 34 | + }, |
| 35 | + "runtimeDetails": { |
| 36 | + "type": "object", |
| 37 | + "required": [ "scanUrl" ], |
| 38 | + "additionalProperties": false, |
| 39 | + "properties": { |
| 40 | + "scanUrl": { "type": "string", "minLength": 1 } |
| 41 | + } |
| 42 | + }, |
| 43 | + "deploymentDetails": { |
| 44 | + "type": "object", |
| 45 | + "required": [ "network", "configDigest", "sv", "synchronizer" ], |
| 46 | + "additionalProperties": false, |
| 47 | + "properties": { |
| 48 | + "network": { |
| 49 | + "type": "string", |
| 50 | + "enum": ["dev", "test", "main"] |
| 51 | + }, |
| 52 | + "configDigest": { |
| 53 | + "type": "object", |
| 54 | + "required": [ "allowedIpRanges", "approvedSvIdentities" ], |
| 55 | + "additionalProperties": false, |
| 56 | + "properties": { |
| 57 | + "allowedIpRanges": { "$ref": "#/$defs/digest" }, |
| 58 | + "approvedSvIdentities": { "$ref": "#/$defs/digest" } |
| 59 | + } |
| 60 | + }, |
| 61 | + "sv": { |
| 62 | + "type": "object", |
| 63 | + "required": ["version"], |
| 64 | + "additionalProperties": false, |
| 65 | + "properties": { |
| 66 | + "version": { "type": "string", "minLength": 1 } |
| 67 | + } |
| 68 | + }, |
| 69 | + "synchronizer": { |
| 70 | + "type": "object", |
| 71 | + "required": ["active"], |
| 72 | + "additionalProperties": false, |
| 73 | + "properties": { |
| 74 | + "active": { |
| 75 | + "$ref": "#/$defs/synchronizer" |
| 76 | + }, |
| 77 | + "legacy": { |
| 78 | + "oneOf": [ |
| 79 | + { "type": "null" }, |
| 80 | + { "$ref": "#/$defs/synchronizer" } |
| 81 | + ] |
| 82 | + }, |
| 83 | + "staging": { |
| 84 | + "oneOf": [ |
| 85 | + { "type": "null" }, |
| 86 | + { "$ref": "#/$defs/synchronizer" } |
| 87 | + ] |
| 88 | + } |
| 89 | + } |
| 90 | + } |
| 91 | + } |
| 92 | + }, |
| 93 | + "resources": { |
| 94 | + "type": "object", |
| 95 | + "required": [ "limits", "requests" ], |
| 96 | + "properties": { |
| 97 | + "limits": { |
| 98 | + "type": "object", |
| 99 | + "required": [ "cpu", "memory" ], |
| 100 | + "properties": { |
| 101 | + "cpu": { |
| 102 | + "type": "string", |
| 103 | + "description": "CPU limit (e.g., 500m)." |
| 104 | + }, |
| 105 | + "memory": { |
| 106 | + "type": "string", |
| 107 | + "description": "Memory limit (e.g., 512Mi)." |
| 108 | + } |
| 109 | + } |
| 110 | + }, |
| 111 | + "requests": { |
| 112 | + "type": "object", |
| 113 | + "required": [ "cpu", "memory" ], |
| 114 | + "properties": { |
| 115 | + "cpu": { |
| 116 | + "type": "string", |
| 117 | + "description": "CPU request (e.g., 250m)." |
| 118 | + }, |
| 119 | + "memory": { |
| 120 | + "type": "string", |
| 121 | + "description": "Memory request (e.g., 256Mi)." |
| 122 | + } |
| 123 | + } |
| 124 | + } |
| 125 | + } |
| 126 | + } |
| 127 | + } |
| 128 | +} |
0 commit comments