1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-04 03:11:55 +02:00
goreleaser/scripts
Patrick Hahn e5a9e18050
feat(schema): add command that generates jsonschema (#2589)
* feat(schema): Add command that generates the jsonschema for .goreleaser.yml files

This commit adds the jsonschema/schema subcommand that generates a jsonschema doc based on the Project go struct.
For the config types that alternatively allow you to specify a string via custom UnmarshalYAML function, this commit adds the JSONSchemaType function, so the type gets documented with an oneOf with string or itself.
Add yaml key names for properties that are currently missing them, so alecthomas/jsonschema generates the keys with correct casing.

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* fix: Add linguist-generated attribute to generated schema json to exclude this file from pull request size validation

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* fix: run gofumpt

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* chore(schema): update alecthomas/jsonschema and regenerate schema.json

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>
2021-10-26 15:02:03 -03:00
..
vercel chore(ci): update taskfile, rm makefile 2021-10-05 20:20:23 -03:00
cmd_docs.sh feat(schema): add command that generates jsonschema (#2589) 2021-10-26 15:02:03 -03:00
completions.sh fix: install completions with homebrew (#1877) 2020-11-04 23:12:49 -03:00
entrypoint.sh fix: run goreleaser via exec to handle ctrl+c (#2525) 2021-09-27 11:57:41 -03:00
fury-upload.sh fix: ignore 409 when pushing to fury.io 2021-10-06 01:16:05 -03:00
get-releases.sh feat: smaller releases.json (#2343) 2021-07-14 14:54:33 -03:00
pre-commit.sh chore: improve pre-commit 2021-07-24 21:21:22 -03:00