Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMP-2948: Encoding Event element as escaped string #383

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

tonymort
Copy link
Contributor

https://tools.hmcts.net/jira/browse/DMP-2948

Encoding Event element as escaped string

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

@tonymort tonymort force-pushed the DMP-2948-encode-event-element branch from 9427011 to b9504ed Compare April 25, 2024 14:58
@tonymort tonymort marked this pull request as ready for review April 25, 2024 15:00
@@ -31,15 +33,15 @@ public class DarNotifyEventServiceImpl implements DarNotifyEventService {
@Override
public void darNotify(DarNotifyEvent darNotifyEvent) {
if (enableDarNotify) {
DARNotifyEvent xmlDarNotifyEvent = convertToXmlDarNotifyEvent(darNotifyEvent);
darNotifyEventClient.darNotifyEvent(darNotifyEvent.getNotificationUrl(), xmlDarNotifyEvent);
var eventAsXml = createEvent(darNotifyEvent);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this Xml? If not, maybe rename var

@tonymort tonymort force-pushed the DMP-2948-encode-event-element branch from bb6ac94 to 20c3c74 Compare April 25, 2024 15:07
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 very similar schemas in this folder. If both are needed, maybe add a comment to this file to make clear to a future developer why we need both and what the difference is.

@tonymort tonymort merged commit 58ed46a into master Apr 25, 2024
7 checks passed
@tonymort tonymort deleted the DMP-2948-encode-event-element branch April 25, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants