@skyramp/skyramp 1.3.17 → 1.3.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/package.json
CHANGED
|
@@ -146,6 +146,9 @@ interface GenerateRestTestOptions {
|
|
|
146
146
|
consumerMode?: boolean;
|
|
147
147
|
providerOutput?: string;
|
|
148
148
|
consumerOutput?: string;
|
|
149
|
+
skipProvisionParents?: boolean;
|
|
150
|
+
mockPort?: number;
|
|
151
|
+
optionalFields?: boolean;
|
|
149
152
|
}
|
|
150
153
|
|
|
151
154
|
interface GenerateRestMockOptions {
|
|
@@ -172,6 +175,8 @@ interface GenerateRestMockOptions {
|
|
|
172
175
|
apiSchema?: string[];
|
|
173
176
|
traceFilePath?: string;
|
|
174
177
|
entrypoint?: string;
|
|
178
|
+
mockPort?: number;
|
|
179
|
+
optionalFields?: boolean;
|
|
175
180
|
}
|
|
176
181
|
|
|
177
182
|
interface SendScenarioOptions {
|
|
@@ -111,7 +111,8 @@ const generateRestTestWrapper = lib.func('generateRestTestWrapper', 'string', [
|
|
|
111
111
|
'string', // providerOutput (contract test)
|
|
112
112
|
'string', // consumerOutput (contract test)
|
|
113
113
|
'bool', // skipProvisionParents
|
|
114
|
-
'int'
|
|
114
|
+
'int', // mockPort
|
|
115
|
+
'bool' // optionalFields
|
|
115
116
|
]);
|
|
116
117
|
const generateRestMockWrapper = lib.func('generateRestMockWrapper', 'string', [
|
|
117
118
|
'string', // uri
|
|
@@ -136,7 +137,8 @@ const generateRestMockWrapper = lib.func('generateRestMockWrapper', 'string', [
|
|
|
136
137
|
'string', // apiSchema
|
|
137
138
|
'string', // traceFilePath
|
|
138
139
|
'string', // entryPoint
|
|
139
|
-
'int'
|
|
140
|
+
'int', // mockPort
|
|
141
|
+
'bool' // optionalFields
|
|
140
142
|
]);
|
|
141
143
|
const traceCollectWrapper = lib.func('traceCollectWrapper', 'string', ['string', 'string', 'bool', 'string', 'string']);
|
|
142
144
|
const analyzeOpenapiWrapper = lib.func('analyzeOpenapiWrapper', 'string', ['string', 'string']);
|
|
@@ -960,6 +962,7 @@ class SkyrampClient {
|
|
|
960
962
|
options.consumerOutput || "",
|
|
961
963
|
options.skipProvisionParents || false,
|
|
962
964
|
options.mockPort || 0,
|
|
965
|
+
options.optionalFields || false,
|
|
963
966
|
(err, res) => {
|
|
964
967
|
if (err) {
|
|
965
968
|
reject(err);
|
|
@@ -997,6 +1000,7 @@ class SkyrampClient {
|
|
|
997
1000
|
options.traceFilePath || "",
|
|
998
1001
|
options.entrypoint || "",
|
|
999
1002
|
options.mockPort || 0,
|
|
1003
|
+
options.optionalFields || false,
|
|
1000
1004
|
(err, res) => {
|
|
1001
1005
|
if (err) {
|
|
1002
1006
|
reject(err);
|