You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After picking up the latest RESTler, compilation is failing with the message:
ERROR: Deserialization exception: "An exception occurred during deserialization: Newtonsoft.Json.JsonSerializationException: Required property 'IncludeOptionalParameters' not found in JSON. Path '', line 8, position 1.
IncludeOptionalParameters True by default. When false, RESTler will only pass required parameters when trying to successfully exercise each request.
My best guess is this was introduced by #852, as this was not an error I was seeing before.
Steps to reproduce
Attempt to compile with a config that does not include IncludeOptionalParameters
Expected results
Compilation succeeds (or documentation indicates that this field is required).
Actual results
Compilation fails with the message:
ERROR: Invalid format for compiler config file config.json. Please refer to the documentation for the compiler config file format.
ERROR: Deserialization exception: "An exception occurred during deserialization: Newtonsoft.Json.JsonSerializationException: Required property 'IncludeOptionalParameters' not found in JSON. Path '', line 8, position 1.
Environment details
RESTler version 9.2.4
The text was updated successfully, but these errors were encountered:
Leaving the issue open to track that the deserialization change should be merged after refactoring the compiler config to match the documented optional parameters and adding regression tests to cover the config deserialization.
marina-p
changed the title
Compiler configs that don't include optional IncludeOptionalParameters key are causing failures in RESTler 9.2.4
refactor compiler configs so strict deserialization can be turned on
Mar 26, 2024
Description
After picking up the latest RESTler, compilation is failing with the message:
Previously
IncludeOptionalParameters
was considered optional, and https://github.com/microsoft/restler-fuzzer/blob/main/docs/user-guide/CompilerConfig.md mentions this config has a default value:My best guess is this was introduced by #852, as this was not an error I was seeing before.
Steps to reproduce
Attempt to compile with a config that does not include
IncludeOptionalParameters
Expected results
Compilation succeeds (or documentation indicates that this field is required).
Actual results
Compilation fails with the message:
ERROR: Invalid format for compiler config file config.json. Please refer to the documentation for the compiler config file format.
ERROR: Deserialization exception: "An exception occurred during deserialization: Newtonsoft.Json.JsonSerializationException: Required property 'IncludeOptionalParameters' not found in JSON. Path '', line 8, position 1.
Environment details
RESTler version 9.2.4
The text was updated successfully, but these errors were encountered: