IntParamOptions
Defined in: src/server/http.ts:78
Options for intParam.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
invalid? |
"throw" | "ignore" |
What an unparseable value does: "throw" an HttpError 400 (audit, entitlements) or "ignore" it as if absent (webhooks, flags, links). Part of a product’s HTTP contract (ADR 0010). Default "throw". |
src/server/http.ts:84 |
name? |
string |
The parameter name, for the error message. | src/server/http.ts:88 |
positive? |
boolean |
Require a value > 0 (fractions are floored). With false, any integer. Default true. |
src/server/http.ts:86 |