feat(openapi): Add OpenAPI module: decorators, spec generator, runtime validation and Swagger UI
This commit is contained in:
14
changelog.md
14
changelog.md
@@ -1,5 +1,19 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-12-08 - 1.4.0 - feat(openapi)
|
||||
Add OpenAPI module: decorators, spec generator, runtime validation and Swagger UI
|
||||
|
||||
- Introduce a new OpenAPI module providing decorators, types, spec generator, handlers and validation utilities
|
||||
- Add decorators: ApiOperation, ApiParam, ApiQuery, ApiHeader, ApiRequestBody, ApiResponseBody, ApiSecurity, ApiTag
|
||||
- Add OpenApiGenerator to produce OpenAPI 3.1 JSON from registered controllers and route metadata
|
||||
- Add runtime request validation and coercion using @cfworker/json-schema (validate request body, params, query, headers)
|
||||
- Register OpenAPI endpoints and Swagger UI (and ReDoc) handlers when SmartServe.openapi is enabled
|
||||
- Integrate validation interceptor into controller registry compilation so validation runs before other interceptors
|
||||
- Expose openapi exports from the public API (ts/index.ts and decorators index)
|
||||
- Add extensive types (openapi.types.ts and decorator types) and coercion utilities for query/path params
|
||||
- Add tests for OpenAPI functionality (test/test.openapi.ts)
|
||||
- Bump dependencies: @api.global/typedrequest to ^3.2.5 and add @cfworker/json-schema ^4.1.1
|
||||
|
||||
## 2025-12-05 - 1.3.0 - feat(compression)
|
||||
Improve compression implementation (buffering and threshold), add Deno brotli support, add compression tests and dynamic route API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user