1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00
goreleaser/cmd
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
..
testdata chore: fix wording 2021-09-22 01:21:33 -03:00
build_test.go feat: build single target and/or build id (#2179) 2021-04-21 16:36:53 -03:00
build.go feat: improve output and pipe skipping (#2480) 2021-09-18 10:21:29 -03:00
check_test.go feat: check -q (#2232) 2021-05-20 22:47:32 -03:00
check.go feat: check -q (#2232) 2021-05-20 22:47:32 -03:00
config_test.go chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
config.go feat: refactor main.go to spf13/cobra (#1472) 2020-04-27 21:42:44 -03:00
docs.go docs: fix cmd/docs 2021-07-03 19:27:03 +00:00
error.go feat: refactor main.go to spf13/cobra (#1472) 2020-04-27 21:42:44 -03:00
init_test.go fix: gitignore patching needs leading newline (#2350) 2021-07-19 17:31:29 -03:00
init.go fix: gitignore patching needs leading newline (#2350) 2021-07-19 17:31:29 -03:00
release_test.go test: fix auto-snapshot test 2021-08-21 11:18:54 -03:00
release.go feat: removes deprecated non-semver allowance (#2503) 2021-09-23 00:39:28 -03:00
root_test.go chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
root.go feat(schema): add command that generates jsonschema (#2589) 2021-10-26 15:02:03 -03:00
schema_test.go feat(schema): add command that generates jsonschema (#2589) 2021-10-26 15:02:03 -03:00
schema.go feat(schema): add command that generates jsonschema (#2589) 2021-10-26 15:02:03 -03:00
util_test.go feat: use go 1.17 (#2408) 2021-08-24 20:49:11 -03:00