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
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
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
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.