MCPcopy Create free account
hub / github.com/electric-sql/electric / stripSchemaKeyword

Function stripSchemaKeyword

packages/agents-runtime/src/create-handler.ts:225–230  ·  view source on GitHub ↗
(
  jsonSchema: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

223] as const
224
225function stripSchemaKeyword(
226 jsonSchema: Record<string, unknown>
227): Record<string, unknown> {
228 const { $schema: _schema, ...rest } = jsonSchema
229 return rest
230}
231
232function toJsonSchema(schema: unknown): Record<string, unknown> {
233 if (!schema || typeof schema !== `object` || Array.isArray(schema)) {

Callers 1

toJsonSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected