Skip to content

Commit f9b4b1d

Browse files
johardiclaude
andcommitted
refactor(wire-dto): pin @JsonProperty on remaining FRAGILE record components
Two backend records (SetAnnotationValueAction, AddProjectTagAction) had at least one naked record component the FRAGILE pin in #52 missed, surfaced by the conformance re-audit run as part of #53. Pinning each record component with @JsonProperty using the existing JSON field name (no behavior change). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f9d9d7b commit f9b4b1d

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/edu/stanford/protege/webprotege/bulkop/SetAnnotationValueAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
@JsonTypeName("webprotege.bulkop.SetAnnotationValue")
24-
public record SetAnnotationValueAction(ChangeRequestId changeRequestId,
24+
public record SetAnnotationValueAction(@JsonProperty("changeRequestId") ChangeRequestId changeRequestId,
2525
@JsonProperty("projectId") @Nonnull ProjectId projectId,
2626
@JsonProperty("entities") @Nonnull ImmutableSet<OWLEntity> entities,
2727
@JsonProperty("property") @Nonnull OWLAnnotationProperty property,

src/main/java/edu/stanford/protege/webprotege/tag/AddProjectTagAction.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
* 18 Mar 2018
2020
*/
2121
@JsonTypeName("webprotege.tags.AddProjectTag")
22-
public record AddProjectTagAction(ChangeRequestId changeRequestId,
23-
ProjectId projectId,
24-
String label,
25-
String description,
26-
Color color,
27-
Color backgroundColor) implements ProjectAction<AddProjectTagResult>, ChangeRequest {
22+
public record AddProjectTagAction(@JsonProperty("changeRequestId") ChangeRequestId changeRequestId,
23+
@JsonProperty("projectId") ProjectId projectId,
24+
@JsonProperty("label") String label,
25+
@JsonProperty("description") String description,
26+
@JsonProperty("color") Color color,
27+
@JsonProperty("backgroundColor") Color backgroundColor) implements ProjectAction<AddProjectTagResult>, ChangeRequest {
2828

2929
public static final String CHANNEL = "webprotege.tags.AddProjectTag";
3030

0 commit comments

Comments
 (0)