obj: {"patternProperties": {"^\\${{\\s*if(.*?)\\s*}}$": {"anyOf": [{"properties": {"dependencies": {"patternProperties": {"^(?:(?!-)(?!.{0,32}--)[a-z0-9-]{1,32}(?<!-)\\/)?(?<component_name>(?!-)(?!.{0,32}--)[a-z0-9-]{1,32}(?<!-))(?:@(?<instance_name>[\\w][\\w\\.-]{0,127}))?$": {"anyOf": [{"pattern": "^[\\w][\\w\\.-]{0,127}$"}]}}}}}]}}}