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

Throw proper exception when TypeNameMatch expression is missing #176

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

rogordon01
Copy link
Contributor

@rogordon01 rogordon01 commented Mar 14, 2022

This PR ensure that we throw a better exception when the typeNameMatch expression is not provided. Now, the following exception will be thrown: An expression must be set for [TypeNameMatchExpression]

@rogordon01 rogordon01 requested a review from a team as a code owner March 14, 2022 22:13
@rogordon01 rogordon01 merged commit 6dc66d7 into main Mar 14, 2022
@rogordon01 rogordon01 deleted the personal/rogordon/checkForMissingExpressions branch March 14, 2022 22:38
@@ -36,6 +35,16 @@ public class IotJsonPathContentTemplateTests
},
});

private static readonly IContentTemplate SingleValueMissingTypeNameTemplate = BuildMeasurementExtractor(new IotJsonPathContentTemplate
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: This field doesn't seem to be referenced in Line 73's test or anywhere else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct; I forgot to delete this. I'll remove it in my next PR

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.

3 participants