File tree 4 files changed +11
-5
lines changed
pkgs/typed-api-spec/src/fastify
4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import express from "express";
2
2
import * as v from "valibot" ;
3
3
import cors from "cors" ;
4
4
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" ;
6
9
7
10
const openapiBaseDoc : Omit < OpenAPIV3_1 . Document , "paths" > = {
8
11
openapi : "3.1.0" ,
@@ -44,7 +47,7 @@ const apiEndpoints = {
44
47
} ,
45
48
} ,
46
49
} ,
47
- } satisfies SSOpenApiEndpoints ;
50
+ } satisfies OpenApiEndpointsSchema ;
48
51
49
52
const newApp = ( ) => {
50
53
const app = express ( ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ import cors from "cors";
3
3
import { OpenAPIV3_1 } from "openapi-types" ;
4
4
import "zod-openapi/extend" ;
5
5
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" ;
7
10
8
11
const openapiBaseDoc : Omit < OpenAPIV3_1 . Document , "paths" > = {
9
12
openapi : "3.1.0" ,
@@ -47,7 +50,7 @@ const apiEndpoints = {
47
50
} ,
48
51
} ,
49
52
} ,
50
- } satisfies SSOpenApiEndpoints ;
53
+ } satisfies OpenApiEndpointsSchema ;
51
54
52
55
const newApp = ( ) => {
53
56
const app = express ( ) ;
Original file line number Diff line number Diff line change 6
6
ZodTypeProvider ,
7
7
} from "fastify-type-provider-zod" ;
8
8
import { pathMap } from "../../spec/zod" ;
9
- import { toRoutes } from "@notainc/typed-api-spec/fastify/zod " ;
9
+ import { toRoutes } from "@notainc/typed-api-spec/fastify" ;
10
10
import { ZodError } from "zod" ;
11
11
const fastify = Fastify ( { logger : true } ) ;
12
12
File renamed without changes.
You can’t perform that action at this time.
0 commit comments