-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Add json schema and cli lint command #342
Conversation
@anbraten please resolve conflict |
commands is either string array or string |
That's an error in the schema file. I didn't know / saw that a command is allowed to be just a single string instead of an array with a single item. I will adjust the schema. |
one question are all schema in |
Yes atm I only added valid configs for all possible options as the impossible options are infinitely large. Schemastore seems to have some negative tests for their hosted schemas. I can try to add something similar. |
addresses #275
preparation for #276
Changes
lint
to cli to test a directory or single file to use correct schemawoodpecker-cli lint ./pipeline/schema/.woodpecker/
Sample output from `woodpecker-cli lint ./pipeline/schema/.woodpecker/`
ref: SchemaStore/schemastore#1845