actions-label-commenter
actions-label-commenter copied to clipboard
proposal: Define config types and validate those
Is your feature request related to a problem? Please describe.
Validate config file at first.
Describe the solution you'd like
Libraries
- ajv-validator/ajv: The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
- sideway/joi: The most powerful data validation library for JS
- imbrn/v8n: ☑️ JavaScript fluent validation library
- ansman/validate.js: A declarative validation library written javascript
Describe alternatives you've considered
Additional context
export interface Labeled {
issue: Issue;
pr?: Issue;
}
This wonders me... Would this make issue required? SInce it lacks the ? which to my basic ts knowledge makes it optional/nullable?
That is a simple example generated with yaml-to-typescript. In order to avoid misunderstandings, I have deleted that and added some useful libraries for validation.