MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / jsonContent

Function jsonContent

packages/web/src/openapi/publicApiDocument.ts:91–97  ·  view source on GitHub ↗
(schema: ZodTypeAny | SchemaObject)

Source from the content-addressed store, hash-verified

89};
90
91function jsonContent(schema: ZodTypeAny | SchemaObject) {
92 return {
93 'application/json': {
94 schema,
95 },
96 };
97}
98
99function errorJson(description: string) {
100 return {

Callers 2

errorJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected