summary refs log tree commit diff
path: root/scripts/openapi.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-17 09:37:51 +0100
committerRory& <root@rory.gay>2025-12-17 09:37:51 +0100
commitc18c8502d1784a91f3e081759b7feb0677ad87a3 (patch)
treea842381653452ead1ffbd8b6ed8fe27425bd925a /scripts/openapi.js
parentPrettier u10 (diff)
downloadserver-ts-c18c8502d1784a91f3e081759b7feb0677ad87a3.tar.xz
Prettier u11
Diffstat (limited to 'scripts/openapi.js')
-rw-r--r--scripts/openapi.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/openapi.js b/scripts/openapi.js

index ab7de525..39396d8d 100644 --- a/scripts/openapi.js +++ b/scripts/openapi.js
@@ -243,7 +243,16 @@ async function main() { fs.writeFileSync(openapiPath, JSON.stringify(specification, null, 4).replaceAll("#/definitions", "#/components/schemas").replaceAll("bigint", "number")); console.log("Wrote OpenAPI specification to", openapiPath); - console.log("Specification contains", Object.keys(specification.paths).length, "paths and", Object.keys(specification.components.schemas).length, "schemas in", Number(totalSw.elapsed().totalMilliseconds + "." + totalSw.elapsed().microseconds), "ms."); + const elapsedMs = Number(totalSw.elapsed().totalMilliseconds + "." + totalSw.elapsed().microseconds); + console.log( + "Specification contains", + Object.keys(specification.paths).length, + "paths and", + Object.keys(specification.components.schemas).length, + "schemas in", + elapsedMs, + "ms.", + ); } main();