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

fix schema validation entry on legacy site #792

Merged
merged 4 commits into from
Dec 22, 2023

Conversation

noursaidi
Copy link
Collaborator

No description provided.

@noursaidi noursaidi merged commit d92c536 into faucetsdn:master Dec 22, 2023
8 checks passed
System.err.println(
String.format(
"Device has missing points: %s",
Joiner.on(", ").join(missingPoints)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: there's com.google.udmi.util.GeneralUtils.CSV_JOINER for this... very minor savings in characters :-)

@@ -201,12 +201,24 @@ public void validateMessageType(Object message, Date timestamp, Map<String, Stri
} else if (!missingPoints.isEmpty()) {
addError(pointValidationError("missing points", missingPoints), attributes,
Category.VALIDATION_DEVICE_CONTENT);
System.err.println(
Copy link
Collaborator

Choose a reason for hiding this comment

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

System.err.printf() is a thing!

}

extraPoints = metadataDiff.extraPoints;
if (extraPoints != null && !extraPoints.isEmpty()) {
addError(pointValidationError("extra points", extraPoints), attributes,
Category.VALIDATION_DEVICE_CONTENT);
System.err.println(
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto x2

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.

None yet

2 participants