Skip to content

Commit

Permalink
Fix TopicFilter topicFilter-property name
Browse files Browse the repository at this point in the history
  • Loading branch information
codepitbull committed Dec 11, 2024
1 parent 907c059 commit edd7d00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@Schema(name = "TopicFilter")
public class TopicFilterModel {

@JsonProperty("topicFilter")
@JsonProperty("filter")
@Schema(format = "mqtt-topic-filter",
description = "The topic filter according to the MQTT specification.",
requiredMode = Schema.RequiredMode.REQUIRED)
Expand All @@ -44,7 +44,7 @@ public class TopicFilterModel {

@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public TopicFilterModel(
@JsonProperty("topicFilter") final @NotNull String topicFilter,
@JsonProperty("filter") final @NotNull String topicFilter,
@JsonProperty("description") final @Nullable String description,
@JsonProperty("schema") final @Nullable String schema) {
this.description = Objects.requireNonNullElse(description, "");
Expand Down

0 comments on commit edd7d00

Please sign in to comment.