diff --git a/bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/market/MarketConfig.java b/bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/market/MarketConfig.java index b64870d1..04c78956 100644 --- a/bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/market/MarketConfig.java +++ b/bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/market/MarketConfig.java @@ -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.") diff --git a/bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/strategy/StrategyConfig.java b/bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/strategy/StrategyConfig.java index a32ed2c8..30005c33 100644 --- a/bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/strategy/StrategyConfig.java +++ b/bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/strategy/StrategyConfig.java @@ -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.")