@platformatic/foundation 3.31.0 → 3.32.0-alpha.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/lib/schema.js +6 -27
- package/package.json +1 -1
package/lib/schema.js
CHANGED
|
@@ -228,6 +228,7 @@ export const logger = {
|
|
|
228
228
|
properties: {
|
|
229
229
|
level: {
|
|
230
230
|
type: 'string',
|
|
231
|
+
default: 'info',
|
|
231
232
|
oneOf: [
|
|
232
233
|
{
|
|
233
234
|
enum: ['fatal', 'error', 'warn', 'info', 'debug', 'trace', 'silent']
|
|
@@ -336,6 +337,7 @@ export const logger = {
|
|
|
336
337
|
}
|
|
337
338
|
},
|
|
338
339
|
|
|
340
|
+
required: ['level'],
|
|
339
341
|
default: {},
|
|
340
342
|
additionalProperties: true
|
|
341
343
|
}
|
|
@@ -605,7 +607,8 @@ export const health = {
|
|
|
605
607
|
maxHeapUsed: overridableValue({ type: 'number', minimum: 0, maximum: 1 }, 0.99),
|
|
606
608
|
maxHeapTotal: overridableValue({ type: 'number', minimum: 0 }, 4 * Math.pow(1024, 3)), // 4GB
|
|
607
609
|
maxYoungGeneration: overridableValue({ type: 'number', minimum: 0 }, 128 * Math.pow(1024, 2)), // 128MB,
|
|
608
|
-
codeRangeSize: overridableValue({ type: 'number', minimum: 0 }, 268435456)
|
|
610
|
+
codeRangeSize: overridableValue({ type: 'number', minimum: 0 }, 268435456),
|
|
611
|
+
noHeapCheck: overridableValue({ type: 'boolean' }, false)
|
|
609
612
|
},
|
|
610
613
|
additionalProperties: false
|
|
611
614
|
}
|
|
@@ -721,27 +724,6 @@ export const policies = {
|
|
|
721
724
|
additionalProperties: false
|
|
722
725
|
}
|
|
723
726
|
|
|
724
|
-
export const compileCache = {
|
|
725
|
-
anyOf: [
|
|
726
|
-
{ type: 'boolean' },
|
|
727
|
-
{
|
|
728
|
-
type: 'object',
|
|
729
|
-
properties: {
|
|
730
|
-
enabled: {
|
|
731
|
-
type: 'boolean',
|
|
732
|
-
default: true,
|
|
733
|
-
description: 'Enable Node.js module compile cache for faster startup'
|
|
734
|
-
},
|
|
735
|
-
directory: {
|
|
736
|
-
type: 'string',
|
|
737
|
-
description: 'Directory to store compile cache. Defaults to .plt/compile-cache in app root'
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
additionalProperties: false
|
|
741
|
-
}
|
|
742
|
-
]
|
|
743
|
-
}
|
|
744
|
-
|
|
745
727
|
export const application = {
|
|
746
728
|
type: 'object',
|
|
747
729
|
anyOf: [{ required: ['id', 'path'] }, { required: ['id', 'url'] }],
|
|
@@ -886,8 +868,7 @@ export const application = {
|
|
|
886
868
|
}
|
|
887
869
|
}
|
|
888
870
|
}
|
|
889
|
-
}
|
|
890
|
-
compileCache
|
|
871
|
+
}
|
|
891
872
|
}
|
|
892
873
|
}
|
|
893
874
|
|
|
@@ -1360,8 +1341,7 @@ export const runtimeProperties = {
|
|
|
1360
1341
|
required: ['name', 'cron', 'callbackUrl']
|
|
1361
1342
|
}
|
|
1362
1343
|
},
|
|
1363
|
-
policies
|
|
1364
|
-
compileCache
|
|
1344
|
+
policies
|
|
1365
1345
|
}
|
|
1366
1346
|
|
|
1367
1347
|
export const runtimeUnwrappablePropertiesList = [
|
|
@@ -1418,7 +1398,6 @@ export const schemaComponents = {
|
|
|
1418
1398
|
telemetryExporter,
|
|
1419
1399
|
telemetry,
|
|
1420
1400
|
policies,
|
|
1421
|
-
compileCache,
|
|
1422
1401
|
applications,
|
|
1423
1402
|
runtimeProperties,
|
|
1424
1403
|
wrappedRuntimeProperties,
|