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

[NO-TICKET] - Converting schema validation errors to warnings #869

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adam-in-ict
Copy link
Contributor

It's been a persistent issue that schema validation checks can be more of a hindrance than a help in integration development. The information is valuable in helping maintain compliance with the data model, but it sometimes forces developers into the unpleasant decision between forcing in hardcoded values or using the --disable-schema-validation flag in instances where some required data simply isn't available.

@adam-in-ict adam-in-ict requested a review from a team April 7, 2023 13:17
Copy link
Contributor

@VDubber VDubber left a comment

Choose a reason for hiding this comment

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

Any documentation that we should update?
The schema validation seems to be tribal knowledge.

@@ -103,7 +103,12 @@ export function createIntegrationEntity(
validateRawData(generatedEntity);

if (process.env.ENABLE_GRAPH_OBJECT_SCHEMA_VALIDATION) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should remove support for the env var.

Copy link
Contributor

Choose a reason for hiding this comment

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

Meaning, during development we should always being logging the warnings but still not in production.

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.

2 participants