@navios/openapi 0.9.1 → 1.0.0-alpha.3

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +1 -2
  3. package/dist/legacy-compat/__type-tests__/tsconfig.tsbuildinfo +1 -1
  4. package/dist/src/__tests__/endpoint-scanner.service.spec.d.mts +2 -0
  5. package/dist/src/__tests__/endpoint-scanner.service.spec.d.mts.map +1 -0
  6. package/dist/src/__tests__/openapi-generator.service.spec.d.mts +2 -0
  7. package/dist/src/__tests__/openapi-generator.service.spec.d.mts.map +1 -0
  8. package/dist/src/services/endpoint-scanner.service.d.mts +2 -2
  9. package/dist/src/services/endpoint-scanner.service.d.mts.map +1 -1
  10. package/dist/src/services/path-builder.service.d.mts +13 -1
  11. package/dist/src/services/path-builder.service.d.mts.map +1 -1
  12. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  13. package/dist/tsconfig.spec.tsbuildinfo +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/lib/{index-BYd1gzJQ.d.cts → index-Bzkj5ltS.d.cts} +22 -10
  16. package/lib/{index-BYd1gzJQ.d.cts.map → index-Bzkj5ltS.d.cts.map} +1 -1
  17. package/lib/{index-KzCwlPFD.d.mts → index-CwN9u2YO.d.mts} +22 -10
  18. package/lib/{index-KzCwlPFD.d.mts.map → index-CwN9u2YO.d.mts.map} +1 -1
  19. package/lib/index.cjs +1 -1
  20. package/lib/index.d.cts +1 -1
  21. package/lib/index.d.mts +1 -1
  22. package/lib/index.mjs +1 -1
  23. package/lib/legacy-compat/index.cjs +1 -1
  24. package/lib/legacy-compat/index.d.cts +7 -7
  25. package/lib/legacy-compat/index.d.mts +1 -1
  26. package/lib/legacy-compat/index.mjs +1 -1
  27. package/lib/{services-kEHEZqLZ.cjs → services-B16xN1Kh.cjs} +44 -12
  28. package/lib/services-B16xN1Kh.cjs.map +1 -0
  29. package/lib/{services-MFCyRMd8.mjs → services-B7UR1D1X.mjs} +45 -13
  30. package/lib/services-B7UR1D1X.mjs.map +1 -0
  31. package/package.json +4 -5
  32. package/src/__tests__/endpoint-scanner.service.spec.mts +362 -0
  33. package/src/__tests__/metadata.spec.mts +1 -1
  34. package/src/__tests__/openapi-generator.service.spec.mts +394 -0
  35. package/src/__tests__/services.spec.mts +1 -1
  36. package/src/services/endpoint-scanner.service.mts +14 -8
  37. package/src/services/path-builder.service.mts +85 -27
  38. package/lib/services-MFCyRMd8.mjs.map +0 -1
  39. package/lib/services-kEHEZqLZ.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,44 @@ 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.3] - 2026-01-08
9
+
10
+ ### Added
11
+
12
+ - **Comprehensive Test Suite**: Added unit tests for OpenAPI services
13
+ - `endpoint-scanner.service.spec.mts` - Endpoint scanner tests
14
+ - `openapi-generator.service.spec.mts` - OpenAPI generator tests
15
+
16
+ ### Dependencies
17
+
18
+ - Updated to support `@navios/core` ^1.0.0-alpha.3
19
+
20
+ ## [1.0.0-alpha.2] - 2026-01-07
21
+
22
+ ### Added
23
+
24
+ - **Error Schema Support in OpenAPI**: New `buildErrorResponses()` method in `PathBuilderService`
25
+ - Automatically generates OpenAPI response schemas from `errorSchema` configuration
26
+ - Error responses are added alongside success responses in the generated specification
27
+ - Supports all endpoint types: standard endpoints, multipart, and streams
28
+
29
+ ### Changed
30
+
31
+ - **Updated Builder Types**: Services now use `EndpointOptions` and `BaseEndpointOptions` from `@navios/builder`
32
+ - `EndpointScannerService.DiscoveredEndpoint.config` - Updated type to `EndpointOptions | BaseEndpointOptions`
33
+ - `PathBuilderService.buildParameters()` - Updated type signature
34
+ - `PathBuilderService.buildRequestBody()` - Updated type signature
35
+ - `PathBuilderService.buildJsonRequestBody()` - Updated type signature
36
+ - `PathBuilderService.buildMultipartRequestBody()` - Updated type signature
37
+ - **Improved Endpoint Type Detection**: `getEndpointType()` now returns `'unknown'` for unrecognized adapter tokens instead of defaulting to `'endpoint'`
38
+ - Unknown endpoint types only generate error responses, not success responses
39
+ - **New buildUnknownResponses Method**: Handles response generation for unknown endpoint types
40
+
41
+ ### Dependencies
42
+
43
+ - Updated to support `@navios/core` ^1.0.0-alpha.2
44
+ - Updated to support `@navios/builder` ^1.0.0-alpha.2
45
+
8
46
  ## [0.9.1] - 2026-01-05
9
47
 
10
48
  ### Added
package/README.md CHANGED
@@ -231,10 +231,9 @@ const userSchema = z
231
231
  ## Requirements
232
232
 
233
233
  - **Dependencies**:
234
- - `@navios/core` - Core Navios framework
235
234
  - `zod` ^3.25.0 || ^4.0.0 - Schema validation
236
235
  - **Peer Dependencies**:
237
- - `@navios/di` - Dependency injection (for service usage)
236
+ - `@navios/core` - Core Navios framework
238
237
 
239
238
  ## Provider Packages
240
239