fastify-openapi-glue
Version:
generate a fastify configuration from an openapi specification
13 lines (11 loc) • 339 B
JavaScript
// just test the basics to aid debugging
import { test } from "node:test";
import { ParserBase } from "../lib/ParserBase.js";
test("generation of operationId works", (t) => {
const pb = new ParserBase();
t.assert.equal(
pb.makeOperationId("get", "/user/{name}"),
"getUserByName",
"get /user/{name} becomes getUserByName",
);
});