Closed banool closed 2 years ago
Hello @banool,
Being able to use custom payload formats in the dictionary (using a similar syntax that you would expect to work as in your description) is a future planned feature - unfortunately, today it is not supported and you must define custom payloads for each individual parameter with those formats using ``restler_custom_payload```. Is that feasible for your use case, or are there too many such parameters? The related issue describing the currently planned dictionary syntax is #369.
Regarding the encoding question, RESTler should use the string you enter into the dictionary as-is (so, using the \"545\"
value should work, if I understood the description correctly).
Thanks,
Marina
Hey @marina-p, thanks for the response! Understood, I think I should be able to use restler_custom_payload
for now, I don't have too many named parameters using these custom formats.
Description
Hey, I'm using RESTler with the following fuzzing dictionary:
In my OpenAPI spec, I use custom formats. I've read https://github.com/microsoft/restler-fuzzer/blob/main/docs/user-guide/FuzzingDictionary.md but can't see how to add support for them.
I would expect to be able to add something like this:
But that doesn't work.
A further complication here is that while the format is
uint64
, it is actually a string (to support languages such as JS). I'd need the custom payload to be able to encode that (perhaps just with"\"545\""
).I need this because I have custom formats such as
uint64
andhex
and I'd like to be able to control what values are generated for those.