Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.15.0] - 2025-05-08

### Changed

- Open API specs config object is fully spread into the final output

## [0.14.3] - 2025-04-27

upgraded dependencies: `jsr:@std/assert@^1.0.13`, `jsr:@std/path@^1.0.9`,
Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dklab/oak-routing-ctrl",
"version": "0.14.3",
"version": "0.15.0",
"exports": {
".": "./mod.ts",
"./mod": "./mod.ts"
Expand Down
1 change: 1 addition & 0 deletions src/oasStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const updateOas = (

const updated = {
...existing,
...specs,
method,
path: oasPath,
request: {
Expand Down
2 changes: 1 addition & 1 deletion src/useOas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const _useOas: UseOas = (

const generator = new OpenApiGenerator(registry.definitions);
const apiDoc = generator.generateDocument({
openapi: "3.0.0",
openapi: oasCfg.openapi || "3.0.0",
info: {
version: "1.0.0",
title: "My API",
Expand Down