@platformatic/runtime 3.68.0 → 4.0.0-new-config.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.68.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/runtime/4.0.0-new-config.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Runtime Config",
5
5
  "type": "object",
@@ -83,9 +83,6 @@
83
83
  }
84
84
  ]
85
85
  },
86
- "entrypoint": {
87
- "type": "string"
88
- },
89
86
  "basePath": {
90
87
  "type": "string"
91
88
  },
@@ -137,13 +134,14 @@
137
134
  "default": true
138
135
  },
139
136
  "config": {
140
- "type": "string"
141
- },
142
- "useHttp": {
143
- "type": "boolean"
144
- },
145
- "websocket": {
146
- "type": "boolean"
137
+ "anyOf": [
138
+ {
139
+ "type": "string"
140
+ },
141
+ {
142
+ "type": "object"
143
+ }
144
+ ]
147
145
  },
148
146
  "reuseTcpPorts": {
149
147
  "type": "boolean",
@@ -565,7 +563,14 @@
565
563
  "resolvePath": true
566
564
  },
567
565
  "config": {
568
- "type": "string"
566
+ "anyOf": [
567
+ {
568
+ "type": "string"
569
+ },
570
+ {
571
+ "type": "object"
572
+ }
573
+ ]
569
574
  },
570
575
  "url": {
571
576
  "type": "string"
@@ -574,12 +579,6 @@
574
579
  "type": "string",
575
580
  "default": "main"
576
581
  },
577
- "useHttp": {
578
- "type": "boolean"
579
- },
580
- "websocket": {
581
- "type": "boolean"
582
- },
583
582
  "reuseTcpPorts": {
584
583
  "type": "boolean",
585
584
  "default": true
@@ -998,7 +997,14 @@
998
997
  "resolvePath": true
999
998
  },
1000
999
  "config": {
1001
- "type": "string"
1000
+ "anyOf": [
1001
+ {
1002
+ "type": "string"
1003
+ },
1004
+ {
1005
+ "type": "object"
1006
+ }
1007
+ ]
1002
1008
  },
1003
1009
  "url": {
1004
1010
  "type": "string"
@@ -1007,12 +1013,6 @@
1007
1013
  "type": "string",
1008
1014
  "default": "main"
1009
1015
  },
1010
- "useHttp": {
1011
- "type": "boolean"
1012
- },
1013
- "websocket": {
1014
- "type": "boolean"
1015
- },
1016
1016
  "reuseTcpPorts": {
1017
1017
  "type": "boolean",
1018
1018
  "default": true
@@ -1431,7 +1431,14 @@
1431
1431
  "resolvePath": true
1432
1432
  },
1433
1433
  "config": {
1434
- "type": "string"
1434
+ "anyOf": [
1435
+ {
1436
+ "type": "string"
1437
+ },
1438
+ {
1439
+ "type": "object"
1440
+ }
1441
+ ]
1435
1442
  },
1436
1443
  "url": {
1437
1444
  "type": "string"
@@ -1440,12 +1447,6 @@
1440
1447
  "type": "string",
1441
1448
  "default": "main"
1442
1449
  },
1443
- "useHttp": {
1444
- "type": "boolean"
1445
- },
1446
- "websocket": {
1447
- "type": "boolean"
1448
- },
1449
1450
  "reuseTcpPorts": {
1450
1451
  "type": "boolean",
1451
1452
  "default": true
@@ -2082,133 +2083,6 @@
2082
2083
  "default": {},
2083
2084
  "additionalProperties": true
2084
2085
  },
2085
- "server": {
2086
- "type": "object",
2087
- "properties": {
2088
- "hostname": {
2089
- "type": "string"
2090
- },
2091
- "port": {
2092
- "anyOf": [
2093
- {
2094
- "type": "integer"
2095
- },
2096
- {
2097
- "type": "string"
2098
- }
2099
- ]
2100
- },
2101
- "portAssignment": {
2102
- "type": "string",
2103
- "enum": [
2104
- "shared",
2105
- "perWorkerIncrement"
2106
- ],
2107
- "description": "Configures how entrypoint server worker ports are assigned. When set to shared, all workers listen on the same port. When set to perWorkerIncrement, each worker will use its own port, starting from port (worker 0)."
2108
- },
2109
- "backlog": {
2110
- "type": "integer",
2111
- "description": "The maximum length of the queue of pending connections"
2112
- },
2113
- "http2": {
2114
- "type": "boolean"
2115
- },
2116
- "https": {
2117
- "type": "object",
2118
- "properties": {
2119
- "allowHTTP1": {
2120
- "type": "boolean"
2121
- },
2122
- "key": {
2123
- "anyOf": [
2124
- {
2125
- "type": "string"
2126
- },
2127
- {
2128
- "type": "object",
2129
- "properties": {
2130
- "path": {
2131
- "type": "string",
2132
- "resolvePath": true
2133
- }
2134
- },
2135
- "additionalProperties": false
2136
- },
2137
- {
2138
- "type": "array",
2139
- "items": {
2140
- "anyOf": [
2141
- {
2142
- "type": "string"
2143
- },
2144
- {
2145
- "type": "object",
2146
- "properties": {
2147
- "path": {
2148
- "type": "string",
2149
- "resolvePath": true
2150
- }
2151
- },
2152
- "additionalProperties": false
2153
- }
2154
- ]
2155
- }
2156
- }
2157
- ]
2158
- },
2159
- "cert": {
2160
- "anyOf": [
2161
- {
2162
- "type": "string"
2163
- },
2164
- {
2165
- "type": "object",
2166
- "properties": {
2167
- "path": {
2168
- "type": "string",
2169
- "resolvePath": true
2170
- }
2171
- },
2172
- "additionalProperties": false
2173
- },
2174
- {
2175
- "type": "array",
2176
- "items": {
2177
- "anyOf": [
2178
- {
2179
- "type": "string"
2180
- },
2181
- {
2182
- "type": "object",
2183
- "properties": {
2184
- "path": {
2185
- "type": "string",
2186
- "resolvePath": true
2187
- }
2188
- },
2189
- "additionalProperties": false
2190
- }
2191
- ]
2192
- }
2193
- }
2194
- ]
2195
- },
2196
- "requestCert": {
2197
- "type": "boolean"
2198
- },
2199
- "rejectUnauthorized": {
2200
- "type": "boolean"
2201
- }
2202
- },
2203
- "additionalProperties": false,
2204
- "required": [
2205
- "key",
2206
- "cert"
2207
- ]
2208
- }
2209
- },
2210
- "additionalProperties": false
2211
- },
2212
2086
  "reuseTcpPorts": {
2213
2087
  "type": "boolean",
2214
2088
  "default": true