obj: {"definitions": {"ServiceSpec": {"patternProperties": {"^\\${{\\s*if(.*?)\\s*}}$": {"anyOf": [{"properties": {"labels": {"patternProperties": {"^(?=(.{1,63}/)?.{1,63}$)((([a-z0-9][-a-z0-9_.]*)?[a-z0-9])?/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$": {"anyOf": [{"pattern": "\\${{\\s*(.*?)\\s*}}"}]}}}}}]}}}}}