Optional ReadonlybodyRequest body schema.
Optional ReadonlydescriptionLonger OpenAPI operation description.
Optional ReadonlyheadersHeader schema.
Optional ReadonlyoperationDeclared OpenAPI operation identifier, used verbatim instead of a derived id. Must be nonblank and unique among routes included in the document.
Optional ReadonlyparamsPath parameter schema.
Optional ReadonlyqueryQuery parameter schema.
Optional ReadonlyresponseResponse schemas keyed by status code.
Optional ReadonlysecurityOpenAPI security requirements for this operation, overriding any
document-level default. Each entry names a scheme declared in the
document's components.securitySchemes and lists the scopes it needs
(empty for non-OAuth2 schemes such as HTTP bearer or API key).
An empty array is meaningful and is NOT the same as omitting the field: per the OpenAPI specification it declares the operation public, which is how a route opts out of a document-level requirement. Omitting the field leaves the operation inheriting whatever the document declares.
Declaring this does not enforce anything — authentication is enforced by middleware and guards. This describes the route for documentation and client generation.
Declaring is not the only way a document learns about authentication: a
requirement can instead be DERIVED from guards branded with
RouteSecurityMetadata, which is what @setu-ts/auth-plugin's
guards carry. A value declared here always wins over a derived one.
Optional ReadonlysummaryOpenAPI operation summary.
Optional ReadonlytagsOpenAPI tags.
Validation/documentation schemas attached to a route. Schema values are intentionally
unknownhere — the validation plugin narrows them (Zod schemas by default) socommonstays dependency-free.Since
0.1.0