tekir
All Packages
Decoratorsv0.1.3

@tekir/swagger-decorators

@ApiOperation, @ApiResponse, @ApiTag.

Installation

$bun add @tekir/swagger-decorators

Features

  • @ApiTag for grouping endpoints
  • @ApiSummary for operation descriptions
  • @ApiBody and @ApiResponse for schema docs
  • @ApiParam for path/query parameter docs
  • @ApiBearerAuth for auth documentation

Quick Example

TypeScript
import { ApiTag, ApiSummary, ApiResponse, ApiBearerAuth } from '@tekir/swagger-decorators'

@ApiTag('Users')
class UserController {
  @ApiSummary('List all users')
  @ApiResponse(200, { type: 'array' })
  @ApiBearerAuth
  async index(ctx) { /* ... */ }
}

Changelog

v0.1.3LatestSeptember 16, 2026
  • Published output now uses the shared Node-targeted ESM bundle pipeline with external dependencies and generated TypeScript declarations, while Bun consumers keep the native source export.
v0.1.2July 23, 2026
  • Package metadata now follows the shared compatible 0.1.x dependency range used by this coordinated Tekir release.
v0.1.1June 13, 2026
  • Added tests that guard the public API surface: every documented decorator is verified to be defined and each re-exported symbol is confirmed to be the same reference as its original in @tekir/swagger, so an export drift cannot slip through unnoticed.
  • Found and fixed with Fable.
v0.1.0April 1, 2026
  • Initial release

Other Decorators packages