Skip to content

Commit

Permalink
docs: Improve Swagger docs (#169)
Browse files Browse the repository at this point in the history
* Basically to say that the id should not be passed when creating new StrategyConfigs and MarketConfigs using the REST API - the system bot will generate them.
  • Loading branch information
gazbert committed Nov 14, 2024
1 parent fb9eaa1 commit 3733bcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
public class MarketConfig {

@Schema(
requiredMode = Schema.RequiredMode.REQUIRED,
requiredMode = Schema.RequiredMode.NOT_REQUIRED,
description =
"A unique identifier for the Market. Value must be an alphanumeric string. "
+ "Underscores and dashes are also permitted.")
"A unique identifier for the Market. Value is an alphanumeric string. "
+ "Underscores and dashes are also permitted. Do not set this field when creating "
+ "a new MarketConfig using REST API - it will be generated by the bot.")
private String id;

@Schema(description = "An optional friendly name for the Market.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@
public class StrategyConfig {

@Schema(
requiredMode = Schema.RequiredMode.REQUIRED,
requiredMode = Schema.RequiredMode.NOT_REQUIRED,
description =
"A unique identifier for the Strategy. Value must be an alphanumeric string. "
+ "Underscores and dashes are also permitted.")
"A unique identifier for the Strategy. Value is an alphanumeric string. "
+ "Underscores and dashes are also permitted. Do not set this field when creating "
+ "a new StrategyConfig using REST API - it will be generated by the bot.")
private String id;

@Schema(description = "An optional friendly name for the Strategy.")
Expand Down

0 comments on commit 3733bcb

Please sign in to comment.