File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
pkgs/typed-api-spec/src/fastify Expand file tree Collapse file tree 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";
22import * as v from "valibot" ;
33import cors from "cors" ;
44import { 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
710const 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
4952const newApp = ( ) => {
5053 const app = express ( ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ import cors from "cors";
33import { OpenAPIV3_1 } from "openapi-types" ;
44import "zod-openapi/extend" ;
55import 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
811const 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
5255const newApp = ( ) => {
5356 const app = express ( ) ;
Original file line number Diff line number Diff line change 66 ZodTypeProvider ,
77} from "fastify-type-provider-zod" ;
88import { pathMap } from "../../spec/zod" ;
9- import { toRoutes } from "@notainc/typed-api-spec/fastify/zod " ;
9+ import { toRoutes } from "@notainc/typed-api-spec/fastify" ;
1010import { ZodError } from "zod" ;
1111const fastify = Fastify ( { logger : true } ) ;
1212
File renamed without changes.
You can’t perform that action at this time.
0 commit comments