From b6e5b87711b8c51650504cc7373df5bee18e356f Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Wed, 2 Nov 2022 22:14:25 -0300 Subject: [PATCH] docs: instruct how to use a pinned version of the jsonschema closes #3495 --- www/docs/customization/index.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/www/docs/customization/index.md b/www/docs/customization/index.md index 3797e830b49..741f6474798 100644 --- a/www/docs/customization/index.md +++ b/www/docs/customization/index.md @@ -39,5 +39,21 @@ editor support: You can also generate it for your specific version using the [`goreleaser jsonschema`][schema] command. +### Pin the schema version + +You can pin the version by getting the schema from the GitHub tag, for example, +for v1.12.0: + + +=== "OSS" + ```sh + https://raw.githubusercontent.com/goreleaser/goreleaser/v1.12.0/www/docs/static/schema.json + ``` + +=== "Pro" + ```sh + https://raw.githubusercontent.com/goreleaser/goreleaser/v1.12.0/www/docs/static/schema-pro.json + ``` + [jsonschema]: http://json-schema.org/draft/2020-12/json-schema-validation.html [schema]: /cmd/goreleaser_jsonschema/