@navios/openapi 0.9.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/legacy-compat/__type-tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/src/services/endpoint-scanner.service.d.mts +2 -2
- package/dist/src/services/endpoint-scanner.service.d.mts.map +1 -1
- package/dist/src/services/path-builder.service.d.mts +13 -1
- package/dist/src/services/path-builder.service.d.mts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/tsconfig.spec.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/lib/{index-BYd1gzJQ.d.cts → index-COmVnnSM.d.mts} +17 -5
- package/lib/{index-BYd1gzJQ.d.cts.map → index-COmVnnSM.d.mts.map} +1 -1
- package/lib/{index-KzCwlPFD.d.mts → index-Dz-4huer.d.cts} +17 -5
- package/lib/{index-KzCwlPFD.d.mts.map → index-Dz-4huer.d.cts.map} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.mts +1 -1
- package/lib/index.mjs +1 -1
- package/lib/legacy-compat/index.cjs +1 -1
- package/lib/legacy-compat/index.d.cts +1 -1
- package/lib/legacy-compat/index.d.mts +7 -7
- package/lib/legacy-compat/index.mjs +1 -1
- package/lib/{services-kEHEZqLZ.cjs → services-B16xN1Kh.cjs} +44 -12
- package/lib/services-B16xN1Kh.cjs.map +1 -0
- package/lib/{services-MFCyRMd8.mjs → services-B7UR1D1X.mjs} +45 -13
- package/lib/services-B7UR1D1X.mjs.map +1 -0
- package/package.json +4 -4
- package/src/services/endpoint-scanner.service.mts +14 -8
- package/src/services/path-builder.service.mts +85 -27
- package/lib/services-MFCyRMd8.mjs.map +0 -1
- package/lib/services-kEHEZqLZ.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.0-alpha.2] - 2026-01-07
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Error Schema Support in OpenAPI**: New `buildErrorResponses()` method in `PathBuilderService`
|
|
13
|
+
- Automatically generates OpenAPI response schemas from `errorSchema` configuration
|
|
14
|
+
- Error responses are added alongside success responses in the generated specification
|
|
15
|
+
- Supports all endpoint types: standard endpoints, multipart, and streams
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **Updated Builder Types**: Services now use `EndpointOptions` and `BaseEndpointOptions` from `@navios/builder`
|
|
20
|
+
- `EndpointScannerService.DiscoveredEndpoint.config` - Updated type to `EndpointOptions | BaseEndpointOptions`
|
|
21
|
+
- `PathBuilderService.buildParameters()` - Updated type signature
|
|
22
|
+
- `PathBuilderService.buildRequestBody()` - Updated type signature
|
|
23
|
+
- `PathBuilderService.buildJsonRequestBody()` - Updated type signature
|
|
24
|
+
- `PathBuilderService.buildMultipartRequestBody()` - Updated type signature
|
|
25
|
+
- **Improved Endpoint Type Detection**: `getEndpointType()` now returns `'unknown'` for unrecognized adapter tokens instead of defaulting to `'endpoint'`
|
|
26
|
+
- Unknown endpoint types only generate error responses, not success responses
|
|
27
|
+
- **New buildUnknownResponses Method**: Handles response generation for unknown endpoint types
|
|
28
|
+
|
|
29
|
+
### Dependencies
|
|
30
|
+
|
|
31
|
+
- Updated to support `@navios/core` ^1.0.0-alpha.2
|
|
32
|
+
- Updated to support `@navios/builder` ^1.0.0-alpha.2
|
|
33
|
+
|
|
8
34
|
## [0.9.1] - 2026-01-05
|
|
9
35
|
|
|
10
36
|
### Added
|