Expose JSON schema transformation tools as part of API#89
Expose JSON schema transformation tools as part of API#89jgaehring wants to merge 2 commits intofarmOS:mainfrom
Conversation
|
I also parameterized the Drupal meta fields on the const exclude = {
attributes: [
'created',
'changed',
'drupal_internal__id',
'drupal_internal__revision_id',
'langcode',
'revision_created',
'revision_log_message',
'default_langcode',
'revision_translation_affected',
'revision_default',
],
relationships: ['revision_user', 'uid'],
};
const dedrupalizedSchema = transformD9Schema(drupalificSchema, exclude);The ones above there are the defaults if you don't pass the parameter. If you do pass a parameter, only the ones you explicitly list will be removed; in other words, your There are some other ways those meta fields are used internally, such as in |
@duarteoctavio, if this looks good to you, I can merge and tag it as 2.0.0-beta.16.