UNPKG

@tsed/schema-formio

Version:

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

8 lines 250 B
import { getValue } from "@tsed/core"; export function getRef(schema, options) { if (schema.$ref) { return getValue(options, schema.$ref.replace("#/", "").replace(/\//g, ".")); } return schema; } //# sourceMappingURL=getRef.js.map