-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support schema error results to be output in JSON format including custom format flags #40
Merged
Merged
Changes from 17 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
47bbdcc
Create a framework for validation error special case handling
mrutkows 2688048
Create a framework for validation error special case handling
mrutkows 8369472
Adjust JSON output formatting as an array
mrutkows bfa6985
Use an ordered map to control JSON output marshaling order
mrutkows 7776c34
Use an ordered map to control JSON output marshaling order
mrutkows 09bf70a
Use an ordered map to control JSON output marshaling order
mrutkows fd9cba3
Use an ordered map to control JSON output marshaling order
mrutkows bc89b66
Separate format related functions into their own file
mrutkows 086f09d
Separate format related functions into their own file
mrutkows 55810a6
Format value for unique item error
mrutkows 54449f2
Consolidate validation flags and use on top-level API call
mrutkows e3bf5c4
Adjust JSON error result output prefix and indent
mrutkows 7d23529
Add validation test case for bad iri-format
mrutkows 38511c1
Add validation test case for bad iri-format
mrutkows 292a82d
Consolidate persistent command flags into a struct
mrutkows 4ab94f6
represent array type, index and item as a map in json error results
mrutkows 5b57e38
Support flag true|false on validate command
mrutkows a630b7e
Fix even more Sonatype errors that seem to chnage every time I touch …
mrutkows 16f8ce6
Adjust help for validate given new formats/flags
mrutkows ff1c278
Update README to show validate JSON output and new flags
mrutkows 7258d9e
buffer JSON output for unit tests
mrutkows 577e945
Update the text format logic to mirror new json formatting
mrutkows b02cebc
Update the text format logic to mirror new json formatting
mrutkows bf72268
Update the text format logic to mirror new json formatting
mrutkows ac503d5
Streamline json and text formatting paths
mrutkows d646e3e
Adjust colorized indent to match normal indent
mrutkows 62deaed
Add additional test assertions to validate # errs and error conext
mrutkows 64af463
Assure forced schema file tests reset to default schema
mrutkows File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SA4005: ineffective assignment to field BaseError.Message
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
@sonatype-lift ignore
@sonatype-lift ignoreall
@sonatype-lift exclude <file|issue|path|tool>
file|issue|path|tool
from Lift findings by updating your config.toml fileNote: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.