-
Feature Request
-
Resolution: Unresolved
-
Normal
-
None
-
2.4
-
False
-
-
False
1. What is the nature and description of the request?
> Add a configuration that "REJECT" when calling AAP API with duplicate field.
2. Why does the customer need this? (List the business requirements here)
> The Customer security team was reviewing API security. The security team wants to ensure that the AAP API "REJECT" the call when called with duplicate fields/keys.
3. How would you like to achieve this? (List the functional requirements here)
> By adding an option on the UI or configuration in the file.
Additional Info:
I Checked and could not, and there are no handles for duplicate keys.
>>> import json >>> >>> def parse_json_with_duplicate_keys(json_string): ... return json.loads(json_string) ... >>> json_string = '{"a": 1, "b": 2, "a": 3}' >>> result = parse_json_with_duplicate_keys(json_string) >>> print(result) {'a': 3, 'b': 2}