chore: crush git history - reborn from consolidation on 2026-03-10
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import Fastify from "fastify";
|
||||
import apophisPlugin from "../../../index.js";
|
||||
|
||||
const app = Fastify({ logger: false });
|
||||
|
||||
await app.register(import("@fastify/swagger"), {
|
||||
openapi: {
|
||||
info: { title: "Verify Parse Fail", version: "1.0.0" },
|
||||
},
|
||||
});
|
||||
|
||||
await app.register(apophisPlugin, { runtime: "off" });
|
||||
|
||||
app.get(
|
||||
"/broken",
|
||||
{
|
||||
schema: {
|
||||
description: "Route with invalid behavioral contract",
|
||||
"x-ensures": ["this is not a valid contract!!!"],
|
||||
response: {
|
||||
200: {
|
||||
type: "object",
|
||||
properties: {
|
||||
status: { type: "string" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
async () => ({ status: "ok" }),
|
||||
);
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user