RedHatProductSecurity / trestle-bot

A workflow automation tool for `compliance-trestle`
https://redhatproductsecurity.github.io/trestle-bot/
Apache License 2.0
7 stars 10 forks source link

Publish rules YAML schema for validation #357

Open jpower432 opened 1 month ago

jpower432 commented 1 month ago

Is your feature request related to a problem? Please describe.

Allow the rules YAML to be validated during authoring through IDEs or for pre-submission schema validation. Rules with invalid schemas cannot be checked pre-commit currently.

Describe the solution you'd like

The TrestleRule model is defined with pydantic. Used pydantic features to generate a JSON schema.

Describe alternatives you've considered None

Additional context N/A