-
Notifications
You must be signed in to change notification settings - Fork 0
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
Test & improve SchemaValidator #109
base: main
Are you sure you want to change the base?
Conversation
@@ -189,6 +189,7 @@ internal static class ValueHelper | |||
public static Dictionary<string, object?> DeserializeDictionary(JsonElement element, IType type) | |||
{ | |||
var dictionary = new Dictionary<string, object?>(); | |||
// TODO: fix this for unionTypes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Union Types are currently not working
|
||
[Fact] | ||
// TODO: null violations should somehow have a better error | ||
public void ValidateValues_PrimitivesNullViolation_Invalid() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we receive an "INVALID_TYPE" error when having a null violation. While this is probably technically correct, i think it would be simpler to directly indicate that
Cleanup pending from #107