Skip to content

Commit

Permalink
Skip unwrap of automation progress
Browse files Browse the repository at this point in the history
Exclude `automation/planProgress` from the unwrap as it's not wrapped
in an object.

Part of zaproxy/zap-api-python#109.

Signed-off-by: thc202 <thc202@gmail.com>
  • Loading branch information
thc202 committed May 20, 2024
1 parent d2e8822 commit 7359d08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class PythonAPIGenerator extends AbstractAPIGenerator {
+ "\"\"\"\n\n";

private static final Map<String, Set<String>> NON_WRAPPED_API_ELEMENTS =
Map.of("users", Set.of("getUserById"));
Map.of("automation", Set.of("planProgress"), "users", Set.of("getUserById"));

/** Map any names which are reserved in python to something legal */
private static final Map<String, String> nameMap;
Expand Down

0 comments on commit 7359d08

Please sign in to comment.