Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[*] Array of Subdocuments - Support Enums #124

Open
laruche opened this issue Oct 9, 2018 · 1 comment
Open

[*] Array of Subdocuments - Support Enums #124

laruche opened this issue Oct 9, 2018 · 1 comment
Labels

Comments

@laruche
Copy link

laruche commented Oct 9, 2018

Hello

It's possible duplicate of BUG #44 marked as resolved,
but I found an issue on my schema,
If I use an enum in an array, forest don't show the select

content : { type: [ { locale : { type : String, enum : ['FR_FR', 'AR_AR'], required : true, default : 'FR_FR' } } ], required: true, validate: [(value) => value.length > 0, 'YOU MUST SELECT CONTENT'], },

46302331-ae080300-c5a0-11e8-8b74-65b2a4122f90

@arnaudbesnier
Copy link
Member

Hi @laruche,
Thanks for the report.

Indeed Enums are not well supported in arrays of subdocuments so far :/

@arnaudbesnier arnaudbesnier changed the title Enum in Array subModel [*] Array of Subdocuments - Support Enums Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants