fieldsFromSchema
Function: fieldsFromSchema()
fieldsFromSchema(
schema,maxDepth?):CompletionField[]
Defined in: packages/ql/src/completion.ts:292
Flatten a JSON schema into completion fields (nested objects as dotted paths, max depth 3)
Parameters
schema
JSON Schema 7 like object
maxDepth?
number = 3
Maximum nesting depth (default 3)
Returns
Array of completion fields