@opra/http 1.4.4 → 1.5.0

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.
@@ -318,8 +318,8 @@ class HttpHandler {
318
318
  let operationResultEncoder = this[core_1.kAssetCache].get(operationResultType, 'encode');
319
319
  if (!operationResultEncoder) {
320
320
  operationResultEncoder = operationResultType.generateCodec('encode', {
321
+ scope: this.adapter.document.scopes,
321
322
  ignoreWriteonlyFields: true,
322
- ignoreHiddenFields: true,
323
323
  });
324
324
  this[core_1.kAssetCache].set(operationResultType, 'encode', operationResultEncoder);
325
325
  }
@@ -333,10 +333,10 @@ class HttpHandler {
333
333
  let encode = this[core_1.kAssetCache].get(operationResponse, 'encode:' + assetKey);
334
334
  if (!encode) {
335
335
  encode = operationResponse.type.generateCodec('encode', {
336
+ scope: this.adapter.document.scopes,
336
337
  partial: operationResponse.partial,
337
338
  projection,
338
339
  ignoreWriteonlyFields: true,
339
- ignoreHiddenFields: true,
340
340
  onFail: issue => `Response body validation failed: ` + issue.message,
341
341
  });
342
342
  if (operationResponse) {
@@ -314,8 +314,8 @@ export class HttpHandler {
314
314
  let operationResultEncoder = this[kAssetCache].get(operationResultType, 'encode');
315
315
  if (!operationResultEncoder) {
316
316
  operationResultEncoder = operationResultType.generateCodec('encode', {
317
+ scope: this.adapter.document.scopes,
317
318
  ignoreWriteonlyFields: true,
318
- ignoreHiddenFields: true,
319
319
  });
320
320
  this[kAssetCache].set(operationResultType, 'encode', operationResultEncoder);
321
321
  }
@@ -329,10 +329,10 @@ export class HttpHandler {
329
329
  let encode = this[kAssetCache].get(operationResponse, 'encode:' + assetKey);
330
330
  if (!encode) {
331
331
  encode = operationResponse.type.generateCodec('encode', {
332
+ scope: this.adapter.document.scopes,
332
333
  partial: operationResponse.partial,
333
334
  projection,
334
335
  ignoreWriteonlyFields: true,
335
- ignoreHiddenFields: true,
336
336
  onFail: issue => `Response body validation failed: ` + issue.message,
337
337
  });
338
338
  if (operationResponse) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/http",
3
- "version": "1.4.4",
3
+ "version": "1.5.0",
4
4
  "description": "Opra Http Server Adapter",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -9,8 +9,8 @@
9
9
  "@browsery/http-parser": "^0.5.9-r1",
10
10
  "@browsery/type-is": "^1.6.18-r5",
11
11
  "@jsopen/objects": "^1.5.0",
12
- "@opra/common": "^1.4.4",
13
- "@opra/core": "^1.4.4",
12
+ "@opra/common": "^1.5.0",
13
+ "@opra/core": "^1.5.0",
14
14
  "accepts": "^1.3.8",
15
15
  "base64-stream": "^1.0.0",
16
16
  "busboy": "^1.6.0",