I can keep below sub properties with same values. But I want to optimize.
property:
bike: ['brake', 'wheel']
car: ['brake', 'wheel']
van: ['brake', 'wheel']
bus: ['brake', 'wheel']
I want something like below, This is my thought.
Consider switch cases without break. I just wrote model. Don't think syntax.
switch(expression){
bike:
car:
van:
['brake', 'wheel']
break;
}
If anything need to be added in future for case 2, i will add intermittently inside case. so that case 2 separate and can add more values like
switch(expression){
bike:
car:
['brake', 'wheel','with or without gear']
break;
van:
['brake', 'wheel']
break;
}
The above is my idea. This may or may not support in yml. I want something similar to above or suggest any other best way.