-
Notifications
You must be signed in to change notification settings - Fork 246
Description
When creating mask that refs another mask, the preview of the edit page works well, however the Docs page is not able to render the nested mask json. Also, the export function doesn't export masks that are not referenced directly in the yaml file.
Preview of Edit page works well, see img below:

Current Behavior
I have a mask called BankDetailsMask that refs another Mask called BankAccountMask, see the error I get from the Docs page:
From the Docs page I see below error:
See the Docs page trying to render the Mask that is a ref of a ref

Note: All other masks that don't have a ref to another masks are loaded with no issues...
Expected Behavior
Able to render the UI with Masks and sub masks.
Possible Workaround/Solution
Not able to find anything else to help me , unless I drop the idea of using masks which is really bad.... masks are amazing
Steps to Reproduce
- Create a model for BankAccount
- Create a mask for BankAccount called BankAccountMask
- Create a model called BankDetails
- Add a property called bankAccount in the BankDetails model and ref the BankAccountMask
- Create a mask for BankDetails called BankDetailsMask
- Create a model called Person
- Add a property in the Person model called bankDetails and point to the BankDetailsMask
- From any post endpoint in the API, ref the BankDetailsMask which under the hood ref to BankAccountMaskOnce you have the above, you will see that the Docs page is not able to load the examples and also not able to load the model in the UI