Optional Custom ID #218
mauriceackel
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
I need this to use FIRECMS! Please! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI @fgatti675 I was wondering if it would make sense to change to logic of the
customId
property in an entity schema.I think it is a common use case that you want to allow but not require the definition of a custom ID. Hence, I propose to change the type of the property to:
Then, in the validation you would allow to have an empty ID value if and only if
customId === 'optional'
. Then, if the id field is left empty, the ID will be set automatically as usual. If the value is set, however, it will be used as the entity ID.What do you think about that?
Beta Was this translation helpful? Give feedback.
All reactions