MCPcopy
hub / github.com/thesysdev/openui / getSchemaDefaultValue

Function getSchemaDefaultValue

packages/lang-core/src/parser/parser.ts:633–638  ·  view source on GitHub ↗
(property: unknown)

Source from the content-addressed store, hash-verified

631}
632
633function getSchemaDefaultValue(property: unknown): unknown {
634 if (!property || typeof property !== "object" || Array.isArray(property)) {
635 return undefined;
636 }
637 return (property as { default?: unknown }).default;
638}
639
640export function compileSchema(schema: LibraryJSONSchema): ParamMap {
641 const map: ParamMap = new Map();

Callers 1

compileSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected