MCPcopy
hub / github.com/fastify/fastify / compileSerializationSchema

Method compileSerializationSchema

types/reply.d.ts:70–70  ·  view source on GitHub ↗
(schema: { [key: string]: unknown }, httpStatus?: string, contentType?: string)

Source from the content-addressed store, hash-verified

68 getSerializationFunction(httpStatus: string, contentType?: string): ((payload: { [key: string]: unknown }) => string) | undefined;
69 getSerializationFunction(schema: { [key: string]: unknown }): ((payload: { [key: string]: unknown }) => string) | undefined;
70 compileSerializationSchema(schema: { [key: string]: unknown }, httpStatus?: string, contentType?: string): (payload: { [key: string]: unknown }) => string;
71 serializeInput(input: { [key: string]: unknown }, schema: { [key: string]: unknown }, httpStatus?: string, contentType?: string): string;
72 serializeInput(input: { [key: string]: unknown }, httpStatus: string, contentType?: string): unknown;
73 then(fulfilled: () => void, rejected: (err: Error) => void): void;

Callers 2

reply.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected