diff --git a/forward_engineering/ddlProvider.js b/forward_engineering/ddlProvider.js index 77595c6..7f215f0 100644 --- a/forward_engineering/ddlProvider.js +++ b/forward_engineering/ddlProvider.js @@ -278,6 +278,15 @@ const provider = (baseProvider, options, app) => { return hasType(type); }, + hydrateJsonSchemaColumn(jsonSchema, definitionJsonSchema) { + if (!jsonSchema.$ref || _.isEmpty(definitionJsonSchema)) { + return jsonSchema; + } + + jsonSchema = _.omit(jsonSchema, '$ref'); + return { ...definitionJsonSchema, ...jsonSchema }; + }, + hydrateColumn({ columnDefinition, jsonSchema, schemaData, parentJsonSchema }) { let encryption = [];