Open joelmarty opened 3 weeks ago
@joelmarty , Do you want to produce key names with parenthesis in them?
Perhaps we can make use of escape sequences to allow parenthesis. Right now, our validation just looks for the characters themselves. But, we do not allow them to be escaped.
We have some related work in #5111.
@dlvenable yes, I am trying to produce field names compatible with w3c's extended log file format, that uses the format prefix(header)
to designate headers sent in the request or the response. For instance, cs(user-agent)
is the field for the user-agent header sent in the request.
Describe the bug The escaped syntax for json pointers define how to build json pointers for fields that include special characters.
However, the
isValidKey()
method inJacksonEventKey
only checks the basic character set and keys defined with the escaped syntax are rejected.To Reproduce Steps to reproduce the behavior:
rename_keys
processor using an escaped syntax:Expected behavior The
to_key
argument"cs(host)"
should be accepted as it conforms to the documented syntax.Screenshots N/A
Environment (please complete the following information):
Additional context N/A