diff --git a/src/main/resources/ai/privado/rulevalidator/schema/inferences.json b/src/main/resources/ai/privado/rulevalidator/schema/inferences.json index dbff9f0a9..4a9e3b92e 100644 --- a/src/main/resources/ai/privado/rulevalidator/schema/inferences.json +++ b/src/main/resources/ai/privado/rulevalidator/schema/inferences.json @@ -55,7 +55,7 @@ "code", "method_full_name" ], - "pattern": "^(code|method_full_name|method_full_name_with_literal|method_full_name_with_property_name)$" + "pattern": "^(code|method_full_name|method_full_name_with_literal|method_full_name_with_property_name|endpoint_domain_with_literal|endpoint_domain_with_property_name)$" }, "domains": { "$id": "#root/inferences/items/domains", diff --git a/src/main/scala/ai/privado/model/PrivadoTag.scala b/src/main/scala/ai/privado/model/PrivadoTag.scala index 1c98f981a..e435b2154 100644 --- a/src/main/scala/ai/privado/model/PrivadoTag.scala +++ b/src/main/scala/ai/privado/model/PrivadoTag.scala @@ -254,6 +254,8 @@ object ConfigRuleType extends Enumeration { } object FilterProperty extends Enumeration { + // TODO When we update the Filter Property also update the validation regex at + // src/main/resources/ai/privado/rulevalidator/schema/inferences.json type FilterProperty = Value val METHOD_FULL_NAME: model.FilterProperty.Value = Value("method_full_name") val CODE: model.FilterProperty.Value = Value("code")