Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

feat: print validation errors in custom key rules#926

Merged
TzlilSwimmer123 merged 13 commits intomainfrom
DAT-4992_show_custom_rule_key_validation_errors
Apr 13, 2023
Merged

feat: print validation errors in custom key rules#926
TzlilSwimmer123 merged 13 commits intomainfrom
DAT-4992_show_custom_rule_key_validation_errors

Conversation

@TzlilSwimmer123
Copy link
Copy Markdown
Contributor

@TzlilSwimmer123 TzlilSwimmer123 commented Apr 10, 2023

Screen Shot 2023-04-10 at 18 17 22

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this being used?

Comment thread pkg/jsonSchemaValidator/validator.go Outdated
return &JSONSchemaValidator{}
}

var CustomKeyValidationErrorKeyPath = "customKeyValidationErrorKeyPath"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see the same peace of code here: https://github.com/datreeio/datree/pull/926/files#r1162390565

I guess one of them is duplicate?

myishay
myishay previously approved these changes Apr 11, 2023
Copy link
Copy Markdown
Contributor

@myishay myishay left a comment

Choose a reason for hiding this comment

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

I think ValidationResults could be renamed to ValidationFailureMessages/ValidationFailedMessages or something like that, but I leave that for you to decide.
Approved

myishay
myishay previously approved these changes Apr 13, 2023
@TzlilSwimmer123 TzlilSwimmer123 merged commit 9ba67d4 into main Apr 13, 2023
@delete-merged-branch delete-merged-branch Bot deleted the DAT-4992_show_custom_rule_key_validation_errors branch April 13, 2023 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants