Skip to content

Commit

Permalink
Added JsonAlias for descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhorridge committed Jun 27, 2024
1 parent d1457bc commit 1284b81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public abstract class SingleChoiceControlData implements FormControlData {

@JsonCreator
public static SingleChoiceControlData get(@JsonProperty(PropertyNames.CONTROL) @Nonnull SingleChoiceControlDescriptor descriptor,
public static SingleChoiceControlData get(@JsonProperty(PropertyNames.CONTROL) @JsonAlias(PropertyNames.DESCRIPTOR) @Nonnull SingleChoiceControlDescriptor descriptor,
@JsonProperty(PropertyNames.CHOICE) @Nullable PrimitiveFormControlData choice) {

return new AutoValue_SingleChoiceControlData(descriptor, choice);
Expand All @@ -38,7 +38,7 @@ public void accept(@Nonnull FormControlDataVisitor visitor) {

@JsonProperty(PropertyNames.CONTROL)
@Nonnull
@JsonProperty("descriptor")
@JsonAlias(PropertyNames.DESCRIPTOR)
public abstract SingleChoiceControlDescriptor getDescriptor();

@JsonProperty(PropertyNames.CHOICE)
Expand Down

0 comments on commit 1284b81

Please sign in to comment.