bug in validator code for component.json