(data, {instancePath="", parentData, parentDataProperty, rootData=data}={})
| 8 | const pattern0 = new RegExp("idle", "u"); |
| 9 | |
| 10 | function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){ |
| 11 | let vErrors = null; |
| 12 | let errors = 0; |
| 13 | if(errors === 0){ |
| 14 | if(data && typeof data == "object" && !Array.isArray(data)){ |
| 15 | if(data.connectionTimeout === undefined){ |
| 16 | data.connectionTimeout = 0; |
| 17 | } |
| 18 | if(data.keepAliveTimeout === undefined){ |
| 19 | data.keepAliveTimeout = 72000; |
| 20 | } |
| 21 | if(data.maxRequestsPerSocket === undefined){ |
| 22 | data.maxRequestsPerSocket = 0; |
| 23 | } |
| 24 | if(data.requestTimeout === undefined){ |
| 25 | data.requestTimeout = 0; |
| 26 | } |
| 27 | if(data.handlerTimeout === undefined){ |
| 28 | data.handlerTimeout = 0; |
| 29 | } |
| 30 | if(data.bodyLimit === undefined){ |
| 31 | data.bodyLimit = 1048576; |
| 32 | } |
| 33 | if(data.caseSensitive === undefined){ |
| 34 | data.caseSensitive = true; |
| 35 | } |
| 36 | if(data.allowUnsafeRegex === undefined){ |
| 37 | data.allowUnsafeRegex = false; |
| 38 | } |
| 39 | if(data.ignoreTrailingSlash === undefined){ |
| 40 | data.ignoreTrailingSlash = false; |
| 41 | } |
| 42 | if(data.ignoreDuplicateSlashes === undefined){ |
| 43 | data.ignoreDuplicateSlashes = false; |
| 44 | } |
| 45 | if(data.disableRequestLogging === undefined){ |
| 46 | data.disableRequestLogging = false; |
| 47 | } |
| 48 | if(data.maxParamLength === undefined){ |
| 49 | data.maxParamLength = 100; |
| 50 | } |
| 51 | if(data.onProtoPoisoning === undefined){ |
| 52 | data.onProtoPoisoning = "error"; |
| 53 | } |
| 54 | if(data.onConstructorPoisoning === undefined){ |
| 55 | data.onConstructorPoisoning = "error"; |
| 56 | } |
| 57 | if(data.pluginTimeout === undefined){ |
| 58 | data.pluginTimeout = 10000; |
| 59 | } |
| 60 | if(data.requestIdHeader === undefined){ |
| 61 | data.requestIdHeader = false; |
| 62 | } |
| 63 | if(data.requestIdLogLabel === undefined){ |
| 64 | data.requestIdLogLabel = "reqId"; |
| 65 | } |
| 66 | if(data.http2SessionTimeout === undefined){ |
| 67 | data.http2SessionTimeout = 72000; |
nothing calls this directly
no outgoing calls
no test coverage detected