@opra/common 1.0.0-alpha.19 → 1.0.0-alpha.20

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/browser.js CHANGED
@@ -3387,7 +3387,7 @@ var HttpParameter = /* @__PURE__ */ __name(function(owner, initArgs) {
3387
3387
  }
3388
3388
  _this.location = initArgs.location;
3389
3389
  _this.deprecated = initArgs.deprecated;
3390
- _this.required = initArgs.required;
3390
+ _this.required = initArgs.required || initArgs.location === "path";
3391
3391
  _this.arraySeparator = initArgs.arraySeparator;
3392
3392
  _this.keyParam = initArgs.keyParam;
3393
3393
  }, "HttpParameter");
@@ -23,7 +23,7 @@ exports.HttpParameter = function (owner, initArgs) {
23
23
  }
24
24
  _this.location = initArgs.location;
25
25
  _this.deprecated = initArgs.deprecated;
26
- _this.required = initArgs.required;
26
+ _this.required = initArgs.required || initArgs.location === 'path';
27
27
  _this.arraySeparator = initArgs.arraySeparator;
28
28
  _this.keyParam = initArgs.keyParam;
29
29
  };
@@ -20,7 +20,7 @@ export const HttpParameter = function (owner, initArgs) {
20
20
  }
21
21
  _this.location = initArgs.location;
22
22
  _this.deprecated = initArgs.deprecated;
23
- _this.required = initArgs.required;
23
+ _this.required = initArgs.required || initArgs.location === 'path';
24
24
  _this.arraySeparator = initArgs.arraySeparator;
25
25
  _this.keyParam = initArgs.keyParam;
26
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/common",
3
- "version": "1.0.0-alpha.19",
3
+ "version": "1.0.0-alpha.20",
4
4
  "description": "Opra common package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",