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

Ignore schema for all reply_ subtypes #1058

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

khyatimahendru
Copy link
Collaborator

No description provided.

@@ -728,7 +728,8 @@ private ReportingDevice validateMessageCore(Object messageObj, Map<String, Strin
writeDeviceOutCapture(messageObj, attributes, deviceId, schemaName);

String subFolder = attributes.get(SUBFOLDER_PROPERTY_KEY);
boolean processSchema = !IGNORE_FOLDERS.contains(subFolder);
boolean processSchema = !SubType.REPLY.value().equalsIgnoreCase(schemaName)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why the ignore case? Generally we should be pedantic about case matching (just avoids confusion elsewhere).

Also, I'm just generally confused how this works... because SubType would be reply but the schemaName would be something with a reply_ prefix? -- so they never would be equal irrespective of case, so this change seems like a no-op?

@khyatimahendru khyatimahendru marked this pull request as draft January 16, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants