MCPcopy Create free account
hub / github.com/modelcontextprotocol/ext-apps / schemaFor

Function schemaFor

examples/pdf-server/server.test.ts:458–468  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

456
457describe("extractFormSchema field-tree handling", () => {
458 async function schemaFor(bytes: Uint8Array) {
459 const doc = await getDocument({ data: bytes }).promise;
460 try {
461 const fo = (await doc.getFieldObjects()) as Parameters<
462 typeof extractFormSchema
463 >[1];
464 return await extractFormSchema(doc, fo);
465 } finally {
466 doc.destroy();
467 }
468 }
469
470 it("handles pdf-lib separated field/widget structure", async () => {
471 const d = await PDFDocument.create();

Callers 1

server.test.tsFile · 0.85

Calls 1

extractFormSchemaFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…