Resolve $ref elements in model. This is a workaround for limitation of json forms library. The function assumes, that internal definitions are defined in an element named '$defs (Taken from https://github.com/kit-data-manager/Metadata-Schemas-for-Materials-Science/blob/main/editor-ui/js/metadataeditor.js) once the schema is acquired call this function passing the schema as: resolveRefs(dataModel, dataModel.$defs); and only then render it:
Generated using TypeDoc
Resolve $ref elements in model. This is a workaround for limitation of json forms library. The function assumes, that internal definitions are defined in an element named '$defs (Taken from https://github.com/kit-data-manager/Metadata-Schemas-for-Materials-Science/blob/main/editor-ui/js/metadataeditor.js) once the schema is acquired call this function passing the schema as: resolveRefs(dataModel, dataModel.$defs); and only then render it: