Add schema APIs and CLI options, adjust some validation on values#33
Open
Add schema APIs and CLI options, adjust some validation on values#33
Conversation
bfussell
approved these changes
Apr 2, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For accessing schemas, added new APIs and CLI arguments:
--get_evidence_schema [version]--get_source_code_schema [version]--get_security_policy_schema [version]--get_other_documentation_schema [version]Using any of these without the version argument will return the list of available schema versions for that endpoint and their statuses in a nice table.
When the version IS provided, it will either print the schema JSON in output logs, or can be used with the
--save_toargument to save the JSON schema to a file. I chose not to implement a whole CLI JSON schema viewer.Additionally, added some more basic validation on user-provided config values, to handle CRLF line endings more sanely and such.