Skip to content

Commit 5826b8b

Browse files
committed
Fix example
1 parent 45a3760 commit 5826b8b

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

examples/misc/express/valibot/openapi/index.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import express from "express";
22
import * as v from "valibot";
33
import cors from "cors";
44
import { OpenAPIV3_1 } from "openapi-types";
5-
import { SSOpenApiEndpoints, toOpenApiDoc } from "@notainc/typed-api-spec/core";
5+
import {
6+
OpenApiEndpointsSchema,
7+
toOpenApiDoc,
8+
} from "@notainc/typed-api-spec/core";
69

710
const openapiBaseDoc: Omit<OpenAPIV3_1.Document, "paths"> = {
811
openapi: "3.1.0",
@@ -44,7 +47,7 @@ const apiEndpoints = {
4447
},
4548
},
4649
},
47-
} satisfies SSOpenApiEndpoints;
50+
} satisfies OpenApiEndpointsSchema;
4851

4952
const newApp = () => {
5053
const app = express();

examples/misc/express/zod/openapi/index.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import cors from "cors";
33
import { OpenAPIV3_1 } from "openapi-types";
44
import "zod-openapi/extend";
55
import z from "zod";
6-
import { SSOpenApiEndpoints, toOpenApiDoc } from "@notainc/typed-api-spec/core";
6+
import {
7+
OpenApiEndpointsSchema,
8+
toOpenApiDoc,
9+
} from "@notainc/typed-api-spec/core";
710

811
const openapiBaseDoc: Omit<OpenAPIV3_1.Document, "paths"> = {
912
openapi: "3.1.0",
@@ -47,7 +50,7 @@ const apiEndpoints = {
4750
},
4851
},
4952
},
50-
} satisfies SSOpenApiEndpoints;
53+
} satisfies OpenApiEndpointsSchema;
5154

5255
const newApp = () => {
5356
const app = express();

examples/misc/fastify/zod/fastify.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
ZodTypeProvider,
77
} from "fastify-type-provider-zod";
88
import { pathMap } from "../../spec/zod";
9-
import { toRoutes } from "@notainc/typed-api-spec/fastify/zod";
9+
import { toRoutes } from "@notainc/typed-api-spec/fastify";
1010
import { ZodError } from "zod";
1111
const fastify = Fastify({ logger: true });
1212

0 commit comments

Comments
 (0)