create-daloy 0.7.0 → 0.7.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/package.json +1 -1
- package/templates/bun-basic/README.md +1 -0
- package/templates/bun-basic/package.json +1 -1
- package/templates/bun-basic/src/index.ts +1 -0
- package/templates/cloudflare-worker/package.json +1 -1
- package/templates/deno-basic/README.md +1 -0
- package/templates/deno-basic/deno.json +2 -2
- package/templates/deno-basic/src/main.ts +1 -0
- package/templates/node-basic/README.md +1 -0
- package/templates/node-basic/package.json +1 -1
- package/templates/node-basic/src/index.ts +1 -0
- package/templates/vercel-edge/README.md +1 -0
- package/templates/vercel-edge/package.json +1 -1
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ curl http://localhost:3000/books/1
|
|
|
23
23
|
|
|
24
24
|
- API docs (Scalar): <http://localhost:3000/docs>
|
|
25
25
|
- OpenAPI 3.1 JSON: <http://localhost:3000/openapi.json>
|
|
26
|
+
- OpenAPI 3.1 YAML: <http://localhost:3000/openapi.yaml>
|
|
26
27
|
<!-- daloy-minimal:strip-end docs -->
|
|
27
28
|
|
|
28
29
|
## Generate OpenAPI + typed client
|
|
@@ -16,6 +16,7 @@ const links: StartupBannerLink[] = [
|
|
|
16
16
|
// daloy-minimal:strip-start docs
|
|
17
17
|
{ label: "API docs", url: `${url}/docs` },
|
|
18
18
|
{ label: "OpenAPI JSON", url: `${url}/openapi.json` },
|
|
19
|
+
{ label: "OpenAPI YAML", url: `${url}/openapi.yaml` },
|
|
19
20
|
// daloy-minimal:strip-end docs
|
|
20
21
|
{ label: "Health", url: `${url}/healthz` },
|
|
21
22
|
];
|
|
@@ -22,6 +22,7 @@ curl http://localhost:3000/books/1
|
|
|
22
22
|
|
|
23
23
|
- API docs (Scalar): <http://localhost:3000/docs>
|
|
24
24
|
- OpenAPI 3.1 JSON: <http://localhost:3000/openapi.json>
|
|
25
|
+
- OpenAPI 3.1 YAML: <http://localhost:3000/openapi.yaml>
|
|
25
26
|
<!-- daloy-minimal:strip-end docs -->
|
|
26
27
|
|
|
27
28
|
## Generate the OpenAPI spec
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"gen:openapi": "deno run --allow-net --allow-env --allow-read --allow-write scripts/dump-openapi.ts"
|
|
9
9
|
},
|
|
10
10
|
"imports": {
|
|
11
|
-
"@daloyjs/core": "npm:@daloyjs/core@^0.13.
|
|
12
|
-
"@daloyjs/core/": "npm:@daloyjs/core@^0.13.
|
|
11
|
+
"@daloyjs/core": "npm:@daloyjs/core@^0.13.2",
|
|
12
|
+
"@daloyjs/core/": "npm:@daloyjs/core@^0.13.2/",
|
|
13
13
|
"zod": "npm:zod@^4.4.3"
|
|
14
14
|
},
|
|
15
15
|
"compilerOptions": {
|
|
@@ -13,6 +13,7 @@ serve(app, {
|
|
|
13
13
|
// daloy-minimal:strip-start docs
|
|
14
14
|
{ label: "API docs", url: `${url}/docs` },
|
|
15
15
|
{ label: "OpenAPI JSON", url: `${url}/openapi.json` },
|
|
16
|
+
{ label: "OpenAPI YAML", url: `${url}/openapi.yaml` },
|
|
16
17
|
// daloy-minimal:strip-end docs
|
|
17
18
|
{ label: "Health", url: `${url}/healthz` },
|
|
18
19
|
];
|
|
@@ -23,6 +23,7 @@ curl http://localhost:3000/books/1
|
|
|
23
23
|
|
|
24
24
|
- API docs (Scalar): <http://localhost:3000/docs>
|
|
25
25
|
- OpenAPI 3.1 JSON: <http://localhost:3000/openapi.json>
|
|
26
|
+
- OpenAPI 3.1 YAML: <http://localhost:3000/openapi.yaml>
|
|
26
27
|
|
|
27
28
|
The spec is generated live from your routes, so it stays in sync with what is actually deployed.
|
|
28
29
|
<!-- daloy-minimal:strip-end docs -->
|
|
@@ -12,6 +12,7 @@ const links: StartupBannerLink[] = [
|
|
|
12
12
|
// daloy-minimal:strip-start docs
|
|
13
13
|
{ label: "API docs", url: `${url}/docs` },
|
|
14
14
|
{ label: "OpenAPI JSON", url: `${url}/openapi.json` },
|
|
15
|
+
{ label: "OpenAPI YAML", url: `${url}/openapi.yaml` },
|
|
15
16
|
// daloy-minimal:strip-end docs
|
|
16
17
|
{ label: "Health", url: `${url}/healthz` },
|
|
17
18
|
];
|
|
@@ -23,6 +23,7 @@ curl http://localhost:3000/books/1
|
|
|
23
23
|
|
|
24
24
|
- API docs (Scalar): <http://localhost:3000/docs>
|
|
25
25
|
- OpenAPI 3.1 JSON: <http://localhost:3000/openapi.json>
|
|
26
|
+
- OpenAPI 3.1 YAML: <http://localhost:3000/openapi.yaml>
|
|
26
27
|
|
|
27
28
|
After deploying, the same routes serve `/docs` and `/openapi.json` from your Vercel Edge URL.
|
|
28
29
|
<!-- daloy-minimal:strip-end docs -->
|