Repository navigation
v3.4.1
Patch Changes
-
#366
c2ffa90Thanks @G4brym! - Bump production dependencies:@asteasolutions/zod-to-openapito v9 (addsz.guid(),z.cidrv4(),z.cidrv6(),z.base64url(),z.iso.time()andz.iso.duration()format support and fixes nested discriminated union mappings),js-yamlto v5,openapi3-tsto 4.6.2 andzodto 4.6.7. -
#358
2cd8804Thanks @kwy404! - UsedefaultOrderByas the defaultorder_byvalue in list endpoints instead of always defaulting to the first entry oforderByFields. -
#367
b3747f7Thanks @G4brym! - Improve typings by replacing most internalanyusages with precise types orunknown, without changing the public API- Router adapters accept
OpenAPIRouteClass(anyOpenAPIRoutesubclass, exported together with anisOpenAPIRouteClass()helper) in place oftypeof OpenAPIRoute<any> getRequest()adapter helpers now returnRequest- Parameters of
coerceInputs(),jsonResp(),getD1Binding(),Loggerand exceptionpatharguments are widened tounknown-based types that accept the same inputs as before - Optional properties of
RequestTypes,RouteOptionsandretryAfterexplicitly allowundefined, improving compatibility withexactOptionalPropertyTypes
- Router adapters accept
-
#360
ace6b43Thanks @RaphaelFakhri! - Keep generated operationIds unique when endpoint classes share a name. A route whose class name is already used by another route now falls back to a path-based operationId, so Swagger UI no longer runs the wrong endpoint.Explicit
operationIdvalues take precedence: when one matches an id that was generated for an earlier route, the earlier route is given a new path-based id instead. Two explicitoperationIdvalues that collide are kept as-is and a warning is logged. Routes from nested routers are checked against the parent router too, so sub-routers reusing a class name no longer produce duplicate ids. Because collisions are resolved as routes are registered, a generated id can depend on registration order.