Let's say I have a variety of objects with the following data structure:
{
namespace: 'first'|'second'|'third'
}
Now, I need to include another object with the same data structure, but its namespace cannot be assigned as 'first'|‘second’|'third'. It must use a new namespace.
How do I accomplish this task?
Furthermore, when adding yet another object, how can I restrict the namespace value?