Skip to content

Commit

Permalink
fix(Param): Mark all query parameters as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Dec 28, 2016
1 parent adb1fc8 commit 7334d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/params/param.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class Param {
type = getType(config, type, location, id, urlMatcherFactory.paramTypes);
let arrayMode = getArrayMode();
type = arrayMode ? type.$asArray(arrayMode, location === DefType.SEARCH) : type;
let isOptional = config.value !== undefined;
let isOptional = config.value !== undefined || location === DefType.SEARCH;
let dynamic = isDefined(config.dynamic) ? !!config.dynamic : !!type.dynamic;
let raw = isDefined(config.raw) ? !!config.raw : !!type.raw;
let squash = getSquashPolicy(config, isOptional, urlMatcherFactory.defaultSquashPolicy());
Expand Down

0 comments on commit 7334d98

Please sign in to comment.