Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae6f3b9

Browse files
committed
Fill out codegen for fastify plugin.
- all but three conformance tests are passing (mirrorBytes, mirrorText, and bodyTypes) which will require a bit of work to configurare the fastify server, as well as potential changes to the generated client, which assumes that fetch requests come back with JSON.
1 parent 724ddca commit ae6f3b9

File tree

3 files changed

+632
-8
lines changed

3 files changed

+632
-8
lines changed

conformance/ts/src/fastify/app.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
import fs from "fs";
2-
import path from "path";
31
import { FastifyPluginAsync } from "fastify";
42
import { ConformanceApiService } from "../conformanceApiService.js";
5-
import { handRolledPlugin } from "./handRolledPlugin.js";
63
import conformanceTestsJson from '../../../ConformanceTests.json';
4+
import { conformanceApiPlugin } from "./conformanceApiPlugin.js";
75

86
export type AppOptions = {};
97
const options: AppOptions = {};
108

119
const app: FastifyPluginAsync<AppOptions> = async (fastify, opts): Promise<void> => {
12-
fastify.register(handRolledPlugin, { api: new ConformanceApiService(conformanceTestsJson.tests) });
10+
fastify.register(conformanceApiPlugin, { api: new ConformanceApiService(conformanceTestsJson.tests) });
1311
};
1412

1513
export default app;

0 commit comments

Comments
 (0)