lib/contrast/agent/reporting/attack_result/user_input.rb in contrast-agent-6.6.4 vs lib/contrast/agent/reporting/attack_result/user_input.rb in contrast-agent-6.6.5
- old
+ new
@@ -79,9 +79,20 @@
# @param ids [Array<String>]
# @return @_ids [Array<String>]
def matcher_ids= ids
@_matcher_ids = ids if ids.is_a?(Array) && ids.any?(String)
end
+
+ def to_controlled_hash
+ {
+ path: path,
+ key: key,
+ value: value,
+ inputType: input_type.to_s,
+ documentType: document_type.to_s,
+ matcherIds: matcher_ids&.map(&:to_s)
+ }
+ end
end
end
end
end