helpers.descriptors - ZeMA-gGmbH/NoPE-JS GitHub Wiki

Namespace: descriptors

helpers.descriptors

Functions

parseFunctionToJsonSchema

parseFunctionToJsonSchema(schema, toJSONSchema?, workWithRefs?, definitions?, prePathInput?, prePathOutput?, splitChar?): Object

Helper, to parse a INopeDescriptor to a

Parameters

Name Type Default value
schema INopeDescriptor undefined
toJSONSchema boolean true
workWithRefs boolean true
definitions Object {}
prePathInput string "input"
prePathOutput string "output"
splitChar string SPLITCHAR

Returns

Object

Name Type
definitions { [index: string]: INopeDescriptor; }
ids string[]
inputId string
order string[]
outputId string