@opra/core 0.33.5 → 0.33.7
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.
|
@@ -291,7 +291,7 @@ class HttpAdapterHost extends platform_adapter_host_js_1.PlatformAdapterHost {
|
|
|
291
291
|
limit: endpoint.options.inputMaxContentSize
|
|
292
292
|
}, endpoint);
|
|
293
293
|
let data = await jsonReader(incoming);
|
|
294
|
-
data = endpoint.decodeInput(data, { coerce: true });
|
|
294
|
+
data = endpoint.decodeInput(data, { coerce: true, partial: true });
|
|
295
295
|
const params = this.parseParameters(endpoint.parameters, searchParams);
|
|
296
296
|
return new request_host_js_1.RequestHost({
|
|
297
297
|
endpoint,
|
|
@@ -314,7 +314,7 @@ class HttpAdapterHost extends platform_adapter_host_js_1.PlatformAdapterHost {
|
|
|
314
314
|
limit: endpoint.options.inputMaxContentSize
|
|
315
315
|
}, endpoint);
|
|
316
316
|
let data = await jsonReader(incoming);
|
|
317
|
-
data = endpoint.decodeInput(data, { coerce: true });
|
|
317
|
+
data = endpoint.decodeInput(data, { coerce: true, partial: true });
|
|
318
318
|
const params = this.parseParameters(endpoint.parameters, searchParams);
|
|
319
319
|
return new request_host_js_1.RequestHost({
|
|
320
320
|
endpoint,
|
|
@@ -398,7 +398,7 @@ class HttpAdapterHost extends platform_adapter_host_js_1.PlatformAdapterHost {
|
|
|
398
398
|
limit: endpoint.options.inputMaxContentSize
|
|
399
399
|
}, endpoint);
|
|
400
400
|
let data = await jsonReader(incoming);
|
|
401
|
-
data = endpoint.decodeInput(data, { coerce: true });
|
|
401
|
+
data = endpoint.decodeInput(data, { coerce: true, partial: true });
|
|
402
402
|
const params = this.parseParameters(endpoint.parameters, searchParams);
|
|
403
403
|
return new request_host_js_1.RequestHost({
|
|
404
404
|
endpoint,
|
|
@@ -565,13 +565,13 @@ class HttpAdapterHost extends platform_adapter_host_js_1.PlatformAdapterHost {
|
|
|
565
565
|
value = (value == null ? [] : Array.isArray(value) ? value : [value]);
|
|
566
566
|
else
|
|
567
567
|
value = value == null ? {} : Array.isArray(value) ? value[0] : value;
|
|
568
|
-
value = endpoint.encodeReturning(value, { coerce: true });
|
|
568
|
+
value = endpoint.encodeReturning(value, { coerce: true, partial: true });
|
|
569
569
|
response.value = value;
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
if (response.value)
|
|
574
|
-
response.value = endpoint.encodeReturning(response.value, { coerce: true });
|
|
574
|
+
response.value = endpoint.encodeReturning(response.value, { coerce: true, partial: true });
|
|
575
575
|
}
|
|
576
576
|
catch (error) {
|
|
577
577
|
response.errors.push(error);
|
|
@@ -287,7 +287,7 @@ export class HttpAdapterHost extends PlatformAdapterHost {
|
|
|
287
287
|
limit: endpoint.options.inputMaxContentSize
|
|
288
288
|
}, endpoint);
|
|
289
289
|
let data = await jsonReader(incoming);
|
|
290
|
-
data = endpoint.decodeInput(data, { coerce: true });
|
|
290
|
+
data = endpoint.decodeInput(data, { coerce: true, partial: true });
|
|
291
291
|
const params = this.parseParameters(endpoint.parameters, searchParams);
|
|
292
292
|
return new RequestHost({
|
|
293
293
|
endpoint,
|
|
@@ -310,7 +310,7 @@ export class HttpAdapterHost extends PlatformAdapterHost {
|
|
|
310
310
|
limit: endpoint.options.inputMaxContentSize
|
|
311
311
|
}, endpoint);
|
|
312
312
|
let data = await jsonReader(incoming);
|
|
313
|
-
data = endpoint.decodeInput(data, { coerce: true });
|
|
313
|
+
data = endpoint.decodeInput(data, { coerce: true, partial: true });
|
|
314
314
|
const params = this.parseParameters(endpoint.parameters, searchParams);
|
|
315
315
|
return new RequestHost({
|
|
316
316
|
endpoint,
|
|
@@ -394,7 +394,7 @@ export class HttpAdapterHost extends PlatformAdapterHost {
|
|
|
394
394
|
limit: endpoint.options.inputMaxContentSize
|
|
395
395
|
}, endpoint);
|
|
396
396
|
let data = await jsonReader(incoming);
|
|
397
|
-
data = endpoint.decodeInput(data, { coerce: true });
|
|
397
|
+
data = endpoint.decodeInput(data, { coerce: true, partial: true });
|
|
398
398
|
const params = this.parseParameters(endpoint.parameters, searchParams);
|
|
399
399
|
return new RequestHost({
|
|
400
400
|
endpoint,
|
|
@@ -561,13 +561,13 @@ export class HttpAdapterHost extends PlatformAdapterHost {
|
|
|
561
561
|
value = (value == null ? [] : Array.isArray(value) ? value : [value]);
|
|
562
562
|
else
|
|
563
563
|
value = value == null ? {} : Array.isArray(value) ? value[0] : value;
|
|
564
|
-
value = endpoint.encodeReturning(value, { coerce: true });
|
|
564
|
+
value = endpoint.encodeReturning(value, { coerce: true, partial: true });
|
|
565
565
|
response.value = value;
|
|
566
566
|
return;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
if (response.value)
|
|
570
|
-
response.value = endpoint.encodeReturning(response.value, { coerce: true });
|
|
570
|
+
response.value = endpoint.encodeReturning(response.value, { coerce: true, partial: true });
|
|
571
571
|
}
|
|
572
572
|
catch (error) {
|
|
573
573
|
response.errors.push(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/core",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.7",
|
|
4
4
|
"description": "Opra schema package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@browsery/type-is": "^0.6.3",
|
|
32
|
-
"@opra/common": "^0.33.
|
|
32
|
+
"@opra/common": "^0.33.7",
|
|
33
33
|
"accepts": "^1.3.8",
|
|
34
34
|
"content-disposition": "^0.5.4",
|
|
35
35
|
"content-type": "^1.0.5",
|