Skip to content

Commit

Permalink
feat: Remove arguments for filtering anyOf/oneOf combinations as they…
Browse files Browse the repository at this point in the history
… are not needed anymore
  • Loading branch information
en-milie committed Oct 23, 2024
1 parent f229786 commit 14be5c4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/java/com/endava/cats/args/ProcessingArguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public class ProcessingArguments {
description = "The number of random headers that will be sent by the @|bold LargeNumberOfRandomAlphanumericHeadersFuzzer and LargeNumberOfRandomHeadersFuzzer|@. Default: @|bold,underline ${DEFAULT-VALUE}|@")
private int randomHeadersNumber = 10000;

@Setter
@CommandLine.Option(names = {"--selfReferenceDepth", "-L"},
description = "Max depth for request objects having cyclic dependencies. Default: @|bold,underline ${DEFAULT-VALUE}|@")
private int selfReferenceDepth = 4;
Expand Down Expand Up @@ -96,16 +97,6 @@ public class ProcessingArguments {
@Setter
private int limitXxxOfCombinations = 20;

@CommandLine.Option(names = {"--generateXxxCombinationsForResponses"},
description = "Generate anyOf/oneOf combinations also for response schemas. By default it creates one response payload with all possibilities. Default: @|bold,underline ${DEFAULT-VALUE}|@")
private boolean generateAllXxxCombinationsForResponses;

@Setter
@CommandLine.Option(names = {"--filterXxxFromRequestPayloads"}, negatable = true, defaultValue = "true", fallbackValue = "true",
description = "In extremely rare cases when CATS fails to generate anyOf/oneOf combinations some requests may still contain ONE_OF/ANY_OF markers. They are filtered out by default. " +
"Setting this to false will send them as requests which will probably fail. It's mostly for debug purposes. Default: @|bold,underline ${DEFAULT-VALUE}|@")
private boolean filterXxxFromRequestPayloads = true;

@CommandLine.Option(names = {"--useDefaults"}, negatable = true, defaultValue = "true", fallbackValue = "true",
description = "If set to @|bold true|@, it will use default values (if set) when generating examples. Default: @|bold,underline ${DEFAULT-VALUE}|@")
private boolean useDefaults = true;
Expand Down

0 comments on commit 14be5c4

Please sign in to comment.