@http-forge/core 0.2.15 → 0.2.18
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/README.md +41 -0
- package/dist/index.js +173 -173
- package/dist/index.mjs +173 -173
- package/dist/infrastructure/openapi/openapi-exporter.d.ts +12 -0
- package/package.json +1 -1
|
@@ -81,8 +81,13 @@ export declare class OpenApiExporter {
|
|
|
81
81
|
private inferTypeFromValue;
|
|
82
82
|
/**
|
|
83
83
|
* Coerce a string value to the appropriate JS type for the 'example' field.
|
|
84
|
+
* Sanitizes {{varName}} placeholders to <varName> before coercion.
|
|
84
85
|
*/
|
|
85
86
|
private coerceExample;
|
|
87
|
+
/** Replace {{varName}} placeholders with <varName> so they don't appear raw in examples. */
|
|
88
|
+
private sanitizeEnvVar;
|
|
89
|
+
/** Recursively sanitize {{varName}} placeholders in string values of a parsed example object. */
|
|
90
|
+
private sanitizeObjectExamples;
|
|
86
91
|
private buildRequestBody;
|
|
87
92
|
private getContentType;
|
|
88
93
|
private tryParseBodyContent;
|
|
@@ -101,4 +106,11 @@ export declare class OpenApiExporter {
|
|
|
101
106
|
private sanitizeComponentName;
|
|
102
107
|
private cleanSummary;
|
|
103
108
|
private hasDeprecatedPrefix;
|
|
109
|
+
/**
|
|
110
|
+
* For each host variable found in request URLs (e.g. {{dcqHost}}),
|
|
111
|
+
* attempt to resolve it from the configured environments and add it
|
|
112
|
+
* to the servers list. Falls back to an OAS server-variable entry
|
|
113
|
+
* if the variable cannot be resolved.
|
|
114
|
+
*/
|
|
115
|
+
private augmentServersFromHostVars;
|
|
104
116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@http-forge/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"description": "Headless HTTP testing engine with Postman collection support, dynamic variables, and script-based automation.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|