Skip to content

Commit

Permalink
Use data instead of controlData
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhorridge committed Jun 19, 2024
1 parent 232e58f commit 497e26e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public interface PropertyNames {

String FORM = "form";

String CONTROL_DATA = "controlData";
String DATA = "data";

String FIELD = "field";
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public abstract class FormFieldData {

@JsonCreator
public static FormFieldData get(@JsonProperty(PropertyNames.FIELD) @Nonnull FormFieldDescriptor descriptor,
@JsonProperty(PropertyNames.CONTROL_DATA) @Nonnull Page<FormControlData> formControlData) {
@JsonProperty(PropertyNames.DATA) @Nonnull Page<FormControlData> formControlData) {
return new AutoValue_FormFieldData(descriptor, formControlData);
}

Expand All @@ -31,7 +31,7 @@ public static FormFieldData get(@JsonProperty(PropertyNames.FIELD) @Nonnull Form
* Gets the page of form control values for this field.
*/
@Nonnull
@JsonPropertyOrder(PropertyNames.CONTROL_DATA)
@JsonPropertyOrder(PropertyNames.DATA)
public abstract Page<FormControlData> getFormControlData();

@JsonIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public abstract class FormFieldDataDto {
@JsonCreator
@Nonnull
public static FormFieldDataDto get(@JsonProperty(PropertyNames.FIELD) @Nonnull FormFieldDescriptorDto descriptor,
@JsonProperty(PropertyNames.CONTROL_DATA) @Nonnull Page<FormControlDataDto> formControlData) {
@JsonProperty(PropertyNames.DATA) @Nonnull Page<FormControlDataDto> formControlData) {
return new AutoValue_FormFieldDataDto(descriptor, formControlData);
}

Expand All @@ -29,7 +29,7 @@ public static FormFieldDataDto get(@JsonProperty(PropertyNames.FIELD) @Nonnull F
* Gets the page of form control values for this field.
*/
@Nonnull
@JsonProperty(PropertyNames.CONTROL_DATA)
@JsonProperty(PropertyNames.DATA)
public abstract Page<FormControlDataDto> getFormControlData();

@Nonnull
Expand Down

0 comments on commit 497e26e

Please sign in to comment.