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

Test & improve SchemaValidator #109

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

RohrerF
Copy link
Member

@RohrerF RohrerF commented May 22, 2023

Cleanup pending from #107

@@ -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
Copy link
Member Author

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()
Copy link
Member Author

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

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

1 participant