StaticcheckChecks a console form body against what its control is held to.
An empty value is absent; case is exact.
the console path
the form's action value
the form body
ok, or the field, value, accepted values and refusal sentence
StaticcheckChecks a query string against the enums an operation's query parameters declare.
the operation's OpenAPI parameters
the parsed query string
ok, or the field, value, accepted values and refusal sentence
StaticcheckChecks a query string against everything an operation declares in: query: no name it does not declare, and no value that does not fit its
declared type. The sentence names the parameter and never its value.
the operation's parameters
the request's parsed query
{ ok: true }, or { ok: false, field, problem, sentence }
where problem is unknown or type
StaticcollectCollects every enum a request schema declares outside anyOf, oneOf and
not, following $ref into the components.
An enum marked x-refused-by-handler is left out.
the request schema
Optionalcomponents: any
the document's component schemas
each enum's path (* for an array's items) and values
StaticconsoleLists every registered console control; for the tests.
the page, action and fields of each
StaticfitsWhether one query value fits a parameter's declared type.
the parameter's schema
the value as express parsed it
true when it fits
StaticforReturns the enums a console POST to a page with an action is held to.
the console path
the form's action value
the fields
StaticformReturns a form body with every value of a repeated field, which the ordinary body parser does not keep.
the request
the parsed body, returned as is when the body is not form-encoded
the fields, a repeated one as an array
StatichasSays whether any control on a console page is registered under an action of its own.
the console path
true when one is
StaticregisterRegisters the top-level enums a console form posting action to page is
held to.
the console path the form posts to
the form's action value
the enums, as collect() answers them; only flat fields
are kept
StaticsaidA name the CALLER sent, as a refusal sentence says it: quoted, and
percent-encoded where it carries a character markup or a string is made
of (2026-11-10). A sentence that repeats "><script> verbatim is
harmless in JSON or plain text with nosniff, and still sets off every
scanner that looks for its probe in the answer (Qualys QID 150084, 29
times in one scan); %22%3E%3Cscript%3E names the same thing and
reflects nothing. An ordinary name is left exactly as it was.
what the caller sent
the quoted name, at most MAX_NAME_SAID characters before encoding
StaticsentenceReturns the refusal sentence: the field, the value, and every value the set accepts.
the field's name
the value given
the values the set accepts
the sentence
The closed sets an administrator's input is held to: the enums the OpenAPI document declares, enforced at the console, the management API's query strings and its bodies.
A leaf holding the console's register of enums per page and action, and the one refusal sentence all three doors give.