OptionalschemasIts bodies' JSON Schemas, for the responses in OpenAPIFeature's spec.
OptionalvalidationThe details of a failed validation (validate(), bindBody(),
bindQuery()): 'flatten' (the default), 'issues', 'fields' or a
function of the issues.
The body of an error response, or a Response to send as is. A HEAD
request gets no body (nor content type) whatever it returns.
OptionallistThe body of list(c, page). Default { success: true, data: items, meta }.
OptionallogLogs every problem, instead of the Kernel logging the errors thrown (a
5xx at error, a 4xx at debug); it also sees the ones a feature or a
validation answers without throwing.
OptionalsuccessThe body of ok(c, data). Default { success: true, data, message? }.
OptionaltoThe problem for an error the app throws, to recognize its own error
classes; undefined leaves the error to Iskra's mapping.
The shape of every response: set once (
KernelConfig.contract, or WebPlugin's) and followed by the Kernel's error handler, its 404, the validation middlewares, the features that refuse a request (auth, API keys, rate limit, CSRF, uploads) and theok(),list()andfail()helpers.