Skip to content

Commit 99b2439

Browse files
johardiclaude
andcommitted
refactor(wire-dto): pin @JsonProperty on DisplayNameSettingsChangedEvent
The record components were naked (only the static factory had @JsonProperty); the conformance audit re-run during #53 flagged it as FRAGILE. Pinning the record components matches the rest of the events that #52 already covered. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f9b4b1d commit 99b2439

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/edu/stanford/protege/webprotege/lang/DisplayNameSettingsChangedEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* 29 Jul 2018
1616
*/
1717
@JsonTypeName("webprotege.events.projects.DisplayNameSettingsChanged")
18-
public record DisplayNameSettingsChangedEvent(EventId eventId,
19-
ProjectId projectId,
20-
DisplayNameSettings displayNameSettings) implements ProjectEvent {
18+
public record DisplayNameSettingsChangedEvent(@JsonProperty("eventId") EventId eventId,
19+
@JsonProperty("projectId") ProjectId projectId,
20+
@JsonProperty("displayNameSettings") DisplayNameSettings displayNameSettings) implements ProjectEvent {
2121

2222
public static final String CHANNEL = "webprotege.events.projects.DisplayNameSettingsChanged";
2323

0 commit comments

Comments
 (0)