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