Skip to content

Commit

Permalink
Use formId rather than id
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhorridge committed Jul 1, 2024
1 parent 0e7ab6b commit 43ab0bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"id":"b2ec6f21-be8d-4f64-9a06-13cb02498ef1","label":{},"fields":[],"subjectFactory":null}
{"formId":"df8277d0-344a-443b-a519-1a9907201e43","label":{},"fields":[],"subjectFactory":null}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private FormDescriptor() {
}

@JsonCreator
public FormDescriptor(@JsonProperty(PropertyNames.ID) FormId id,
public FormDescriptor(@JsonProperty(PropertyNames.FORM_ID) FormId id,
@JsonProperty(PropertyNames.LABEL) LanguageMap label,
@JsonProperty(PropertyNames.FIELDS) List<FormFieldDescriptor> formFieldDescriptors,
@JsonProperty(PropertyNames.SUBJECT_FACTORY) Optional<FormSubjectFactoryDescriptor> subjectFactoryDescriptor) {
Expand All @@ -63,7 +63,7 @@ public FormDescriptor withFields(Predicate<FormFieldDescriptor> test) {
getSubjectFactoryDescriptor());
}

@JsonProperty(PropertyNames.ID)
@JsonProperty(PropertyNames.FORM_ID)
public FormId getFormId() {
return formId;
}
Expand Down

0 comments on commit 43ab0bd

Please sign in to comment.