UNPKG

@tsed/schema-formio

Version:

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

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