Skip to content

Conversation

@gasinvein
Copy link
Collaborator

@gasinvein gasinvein commented Sep 24, 2021

In case of schema errors in the manifest, f-e-d-c will usually throw an unhandled exception, which may not be easy for the user to figure out what's wrong.
Instead, validate source against a JSON schema as early as possible, and if the schema is invalid - print the error and skip such source.

@gasinvein gasinvein force-pushed the validate-source-early branch from 8f8f94e to 45ef49e Compare September 24, 2021 11:07
@coveralls
Copy link

coveralls commented Sep 24, 2021

Coverage Status

Coverage increased (+0.06%) to 92.45% when pulling 70c4158 on validate-source-early into 018f8c7 on master.

@gasinvein gasinvein force-pushed the validate-source-early branch from 45ef49e to 0078d13 Compare September 24, 2021 11:16
@gasinvein gasinvein requested a review from wjt September 24, 2021 11:22
@gasinvein gasinvein force-pushed the validate-source-early branch 2 times, most recently from cad1882 to 4d7adae Compare September 24, 2021 11:40
@gasinvein gasinvein force-pushed the validate-source-early branch from 4d7adae to 7aec3fa Compare September 27, 2021 21:55
@gasinvein gasinvein force-pushed the validate-source-early branch from 7aec3fa to 70c4158 Compare October 1, 2021 11:58
@gasinvein gasinvein merged commit 8e9e486 into master Oct 1, 2021
@gasinvein gasinvein deleted the validate-source-early branch October 1, 2021 12:04
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.

4 participants