UNPKG

test-openapi

Version:
127 lines (86 loc) 1.6 kB
"use strict";require("core-js/modules/es.array.iterator");Object.defineProperty(exports,"__esModule",{value:true});exports.config=void 0; var _methods=_interopRequireDefault(require("methods"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}} const UPPERCASE_METHODS=_methods.default.map(method=>method.toUpperCase()); const config={ task:{ type:"object", properties:{ method:{ type:"string", enum:[..._methods.default,...UPPERCASE_METHODS]}, server:{ type:"string", pattern:"^[\\w-.+]+://"}, path:{ type:"string", pattern:"^/"}, body:{}, timeout:{ type:"integer"}, https:{ type:"object", properties:{ ca:{ oneOf:[ {type:"string"}, { type:"array", items:{ type:"string"}}]}, cert:{ oneOf:[ {type:"string"}, { type:"array", items:{ type:"string"}}]}, ciphers:{ type:"string"}, clientCertEngine:{ type:"string"}, crl:{ oneOf:[ {type:"string"}, { type:"array", items:{ type:"string"}}]}, dhparam:{ type:"string"}, ecdhCurve:{ type:"string"}, honorCipherOrder:{ type:"boolean"}, key:{ oneOf:[ {type:"string"}, { type:"array", items:{ type:"string"}}]}, passphrase:{ type:"string"}, pfx:{ oneOf:[ {type:"string"}, { type:"array", items:{ type:"string"}}]}, rejectUnauthorized:{ type:"boolean"}, secureOptions:{ type:"integer"}, secureProtocol:{ type:"string"}, servername:{ type:"string"}, sessionIdContext:{ type:"string"}}, additionalProperties:false}}, patternProperties:{ "^url\\.[a-zA-Z_]\\w*":{}, "^query\\..+":{}, "^headers\\.[^A-Z]+":{}}, additionalProperties:false}};exports.config=config; //# sourceMappingURL=config.js.map