-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Sindri Manifest lint output by discriminating circuit type
When there are Sindri Manifest schema issues, the linting output was previously not as helpful as it could be because issues would be logged across all circuit types. This happened because the validator wasn't able to accurately discriminate the union of different subschemas. This PR manually discriminates the circuit type and modifies the schema that we're validating against to be specifically for the matching subschema. The code is a little verbose/hacky, but the error messages are significantly more helpful so I think the tradeoff is well worth it. Merges #74
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters