UNPKG

@tsed/schema-formio

Version:

Transform Ts.ED Schema & JsonSchema to a valid Formio schema

9 lines (7 loc) 215 B
import {getValue} from "@tsed/core"; export function getRef(schema: any, options: any) { if (schema.$ref) { return getValue(options, schema.$ref.replace("#/", "").replace(/\//g, ".")); } return schema; }