Skip to content

Add schema APIs and CLI options, adjust some validation on values#33

Open
abkarcher wants to merge 1 commit intomainfrom
feature/schemaupdates
Open

Add schema APIs and CLI options, adjust some validation on values#33
abkarcher wants to merge 1 commit intomainfrom
feature/schemaupdates

Conversation

@abkarcher
Copy link
Copy Markdown
Collaborator

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_to argument 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.

@abkarcher abkarcher requested a review from bfussell April 2, 2026 17:50
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