From 6c10e8eaa6e3dbc1399787e1bb19fa81970fe174 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Sun, 12 Jun 2022 22:35:36 -0300 Subject: [PATCH] chore: update schema Signed-off-by: Carlos A Becker --- www/docs/static/schema-pro.json | 646 ++++++++++++-------------------- 1 file changed, 235 insertions(+), 411 deletions(-) diff --git a/www/docs/static/schema-pro.json b/www/docs/static/schema-pro.json index 7ea388387..a5e83fd98 100644 --- a/www/docs/static/schema-pro.json +++ b/www/docs/static/schema-pro.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Project", - "description": "goreleaser configuration definition file", - "definitions": { + "$schema": "http://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/goreleaser/goreleaser/pkg/config/project", + "$ref": "#/$defs/Project", + "$defs": { "AUR": { "properties": { "name": { @@ -15,7 +15,7 @@ "type": "array" }, "commit_author": { - "$ref": "#/definitions/CommitAuthor" + "$ref": "#/$defs/CommitAuthor" }, "commit_msg_template": { "type": "string" @@ -97,18 +97,9 @@ "properties": { "hooks": { "items": { - "oneOf": [ - { - "type": "string" - }, - { - "$schema": "http://json-schema.org/draft-04/schema#", - "properties": {}, - "additionalProperties": false, - "type": "object" - } - ] - } + "$ref": "#/$defs/Hook" + }, + "type": "array" } }, "additionalProperties": false, @@ -120,44 +111,34 @@ "type": "string" }, "twitter": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Twitter" + "$ref": "#/$defs/Twitter" }, "reddit": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Reddit" + "$ref": "#/$defs/Reddit" }, "slack": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Slack" + "$ref": "#/$defs/Slack" }, "discord": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Discord" + "$ref": "#/$defs/Discord" }, "teams": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Teams" + "$ref": "#/$defs/Teams" }, "smtp": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/SMTP" + "$ref": "#/$defs/SMTP" }, "mattermost": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Mattermost" + "$ref": "#/$defs/Mattermost" }, "linkedin": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/LinkedIn" + "$ref": "#/$defs/LinkedIn" }, "telegram": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Telegram" + "$ref": "#/$defs/Telegram" }, "webhook": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Webhook" + "$ref": "#/$defs/Webhook" } }, "additionalProperties": false, @@ -190,18 +171,23 @@ }, "format_overrides": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/FormatOverride" + "$ref": "#/$defs/FormatOverride" }, "type": "array" }, "wrap_in_directory": { - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "type": "boolean" + } + ] }, "files": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/File" + "$ref": "#/$defs/File" }, "type": "array" }, @@ -219,18 +205,9 @@ "properties": { "hooks": { "items": { - "oneOf": [ - { - "type": "string" - }, - { - "$schema": "http://json-schema.org/draft-04/schema#", - "properties": {}, - "additionalProperties": false, - "type": "object" - } - ] - } + "$ref": "#/$defs/Hook" + }, + "type": "array" } }, "additionalProperties": false, @@ -267,7 +244,7 @@ }, "extra_files": { "items": { - "$ref": "#/definitions/ExtraFile" + "$ref": "#/$defs/ExtraFile" }, "type": "array" } @@ -318,8 +295,7 @@ }, "ignore": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/IgnoredBuild" + "$ref": "#/$defs/IgnoredBuild" }, "type": "array" }, @@ -333,8 +309,7 @@ "type": "string" }, "hooks": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/BuildHookConfig" + "$ref": "#/$defs/BuildHookConfig" }, "env": { "items": { @@ -364,80 +339,28 @@ "type": "boolean" }, "ldflags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/StringArray" }, "tags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/FlagArray" }, "flags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/FlagArray" }, "asmflags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/StringArray" }, "gcflags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/StringArray" }, "overrides": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/BuildDetailsOverride" + "$ref": "#/$defs/BuildDetailsOverride" }, "type": "array" }, "prebuilt": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/PreBuiltOptions" + "$ref": "#/$defs/PreBuiltOptions" } }, "additionalProperties": false, @@ -461,69 +384,19 @@ "type": "string" }, "ldflags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/StringArray" }, "tags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/FlagArray" }, "flags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/FlagArray" }, "asmflags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/StringArray" }, "gcflags": { - "oneOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] + "$ref": "#/$defs/StringArray" } }, "additionalProperties": false, @@ -533,33 +406,15 @@ "properties": { "pre": { "items": { - "oneOf": [ - { - "type": "string" - }, - { - "$schema": "http://json-schema.org/draft-04/schema#", - "properties": {}, - "additionalProperties": false, - "type": "object" - } - ] - } + "$ref": "#/$defs/Hook" + }, + "type": "array" }, "post": { "items": { - "oneOf": [ - { - "type": "string" - }, - { - "$schema": "http://json-schema.org/draft-04/schema#", - "properties": {}, - "additionalProperties": false, - "type": "object" - } - ] - } + "$ref": "#/$defs/Hook" + }, + "type": "array" } }, "additionalProperties": false, @@ -583,8 +438,7 @@ "Changelog": { "properties": { "filters": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Filters" + "$ref": "#/$defs/Filters" }, "sort": { "type": "string" @@ -593,19 +447,18 @@ "type": "boolean" }, "use": { + "type": "string", "enum": [ "git", "github", "github-native", "gitlab" ], - "type": "string", "default": "git" }, "groups": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/ChangeLogGroup" + "$ref": "#/$defs/ChangeLogGroup" }, "type": "array" } @@ -632,7 +485,7 @@ }, "extra_files": { "items": { - "$ref": "#/definitions/ExtraFile" + "$ref": "#/$defs/ExtraFile" }, "type": "array" } @@ -667,17 +520,13 @@ "type": "string" }, "file_info": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/ContentFileInfo" + "$ref": "#/$defs/ContentFileInfo" } }, "additionalProperties": false, "type": "object" }, "ContentFileInfo": { - "required": [ - "group" - ], "properties": { "owner": { "type": "string" @@ -694,7 +543,10 @@ } }, "additionalProperties": false, - "type": "object" + "type": "object", + "required": [ + "group" + ] }, "Discord": { "properties": { @@ -846,19 +698,10 @@ "type": "string" }, { - "$schema": "http://json-schema.org/draft-04/schema#", - "properties": { - "src": { - "type": "string" - }, - "dst": { - "type": "string" - }, - "strip_parent": { - "type": "boolean" - }, - "info": { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/goreleaser/goreleaser/pkg/config/t", + "$defs": { + "FileInfo": { "properties": { "owner": { "type": "string" @@ -878,6 +721,18 @@ "type": "object" } }, + "properties": { + "src": { + "type": "string" + }, + "dst": { + "type": "string" + }, + "strip_parent": { + "type": "boolean" + }, + "info": "object" + }, "additionalProperties": false, "type": "object" } @@ -895,6 +750,19 @@ "additionalProperties": false, "type": "object" }, + "FlagArray": { + "oneOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ] + }, "FormatOverride": { "properties": { "goos": { @@ -988,10 +856,10 @@ "type": "string" }, "rig": { - "$ref": "#/definitions/RepoRef" + "$ref": "#/$defs/RepoRef" }, "commit_author": { - "$ref": "#/definitions/CommitAuthor" + "$ref": "#/$defs/CommitAuthor" }, "commit_msg_template": { "type": "string" @@ -1051,12 +919,10 @@ "type": "string" }, "tap": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/RepoRef" + "$ref": "#/$defs/RepoRef" }, "commit_author": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/CommitAuthor" + "$ref": "#/$defs/CommitAuthor" }, "commit_msg_template": { "type": "string" @@ -1078,8 +944,7 @@ }, "dependencies": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/HomebrewDependency" + "$ref": "#/$defs/HomebrewDependency" }, "type": "array" }, @@ -1141,7 +1006,8 @@ "type": "string" }, { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/goreleaser/goreleaser/pkg/config/homebrew-dependency", "properties": { "name": { "type": "string" @@ -1155,6 +1021,36 @@ } ] }, + "Hook": { + "oneOf": [ + { + "type": "string" + }, + { + "$schema": "http://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/goreleaser/goreleaser/pkg/config/t", + "properties": { + "dir": { + "type": "string" + }, + "cmd": { + "type": "string" + }, + "env": { + "items": { + "type": "string" + }, + "type": "array" + }, + "output": { + "type": "boolean" + } + }, + "additionalProperties": false, + "type": "object" + } + ] + }, "IgnoredBuild": { "properties": { "goos": { @@ -1179,12 +1075,10 @@ "Include": { "properties": { "from_url": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/IncludeFromURL" + "$ref": "#/$defs/IncludeFromURL" }, "from_file": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/IncludeFromFile" + "$ref": "#/$defs/IncludeFromFile" } }, "additionalProperties": false, @@ -1228,10 +1122,10 @@ "type": "string" }, "index": { - "$ref": "#/definitions/RepoRef" + "$ref": "#/$defs/RepoRef" }, "commit_author": { - "$ref": "#/definitions/CommitAuthor" + "$ref": "#/$defs/CommitAuthor" }, "commit_msg_template": { "type": "string" @@ -1309,7 +1203,7 @@ "Milestone": { "properties": { "repo": { - "$ref": "#/definitions/Repo" + "$ref": "#/$defs/Repo" }, "close": { "type": "boolean" @@ -1402,32 +1296,26 @@ }, "contents": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Content" + "$ref": "#/$defs/Content" }, "type": "array" }, "scripts": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMScripts" + "$ref": "#/$defs/NFPMScripts" }, "rpm": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMRPM" + "$ref": "#/$defs/NFPMRPM" }, "deb": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMDeb" + "$ref": "#/$defs/NFPMDeb" }, "apk": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMAPK" + "$ref": "#/$defs/NFPMAPK" }, "overrides": { "patternProperties": { ".*": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMOverridables" + "$ref": "#/$defs/NFPMOverridables" } }, "type": "object" @@ -1481,12 +1369,10 @@ "NFPMAPK": { "properties": { "scripts": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMAPKScripts" + "$ref": "#/$defs/NFPMAPKScripts" }, "signature": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMAPKSignature" + "$ref": "#/$defs/NFPMAPKSignature" } }, "additionalProperties": false, @@ -1519,12 +1405,10 @@ "NFPMDeb": { "properties": { "scripts": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMDebScripts" + "$ref": "#/$defs/NFPMDebScripts" }, "triggers": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMDebTriggers" + "$ref": "#/$defs/NFPMDebTriggers" }, "breaks": { "items": { @@ -1533,8 +1417,7 @@ "type": "array" }, "signature": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMDebSignature" + "$ref": "#/$defs/NFPMDebSignature" }, "lintian_overrides": { "items": { @@ -1678,21 +1561,21 @@ }, "contents": { "items": { - "$ref": "#/definitions/Content" + "$ref": "#/$defs/Content" }, "type": "array" }, "scripts": { - "$ref": "#/definitions/NFPMScripts" + "$ref": "#/$defs/NFPMScripts" }, "rpm": { - "$ref": "#/definitions/NFPMRPM" + "$ref": "#/$defs/NFPMRPM" }, "deb": { - "$ref": "#/definitions/NFPMDeb" + "$ref": "#/$defs/NFPMDeb" }, "apk": { - "$ref": "#/definitions/NFPMAPK" + "$ref": "#/$defs/NFPMAPK" } }, "additionalProperties": false, @@ -1710,12 +1593,10 @@ "type": "string" }, "signature": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMRPMSignature" + "$ref": "#/$defs/NFPMRPMSignature" }, "scripts": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPMRPMScripts" + "$ref": "#/$defs/NFPMRPMScripts" } }, "additionalProperties": false, @@ -1790,226 +1671,186 @@ "type": "array" }, "release": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Release" + "$ref": "#/$defs/Release" }, "milestones": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Milestone" + "$ref": "#/$defs/Milestone" }, "type": "array" }, "brews": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Homebrew" + "$ref": "#/$defs/Homebrew" }, "type": "array" }, "rigs": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/GoFish" + "$ref": "#/$defs/GoFish" }, "type": "array" }, "aurs": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/AUR" + "$ref": "#/$defs/AUR" }, "type": "array" }, "krews": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Krew" + "$ref": "#/$defs/Krew" }, "type": "array" }, "scoop": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Scoop" + "$ref": "#/$defs/Scoop" }, "builds": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Build" + "$ref": "#/$defs/Build" }, "type": "array" }, "archives": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Archive" + "$ref": "#/$defs/Archive" }, "type": "array" }, "nfpms": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/NFPM" + "$ref": "#/$defs/NFPM" }, "type": "array" }, "snapcrafts": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Snapcraft" + "$ref": "#/$defs/Snapcraft" }, "type": "array" }, "snapshot": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Snapshot" + "$ref": "#/$defs/Snapshot" }, "nightly": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Nightly" + "$ref": "#/$defs/Nightly" }, "checksum": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Checksum" + "$ref": "#/$defs/Checksum" }, "dockers": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Docker" + "$ref": "#/$defs/Docker" }, "type": "array" }, "docker_manifests": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/DockerManifest" + "$ref": "#/$defs/DockerManifest" }, "type": "array" }, "artifactories": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Upload" + "$ref": "#/$defs/Upload" }, "type": "array" }, "uploads": { "items": { - "$ref": "#/definitions/Upload" + "$ref": "#/$defs/Upload" }, "type": "array" }, "blobs": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Blob" + "$ref": "#/$defs/Blob" }, "type": "array" }, "furies": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Fury" + "$ref": "#/$defs/Fury" }, "type": "array" }, "publishers": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Publisher" + "$ref": "#/$defs/Publisher" }, "type": "array" }, "changelog": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Changelog" + "$ref": "#/$defs/Changelog" }, "dist": { "type": "string" }, "signs": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Sign" + "$ref": "#/$defs/Sign" }, "type": "array" }, "docker_signs": { "items": { - "$ref": "#/definitions/Sign" + "$ref": "#/$defs/Sign" }, "type": "array" }, "env_files": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/EnvFiles" + "$ref": "#/$defs/EnvFiles" }, "before": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Before" + "$ref": "#/$defs/Before" }, "after": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/After" + "$ref": "#/$defs/After" }, "source": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Source" + "$ref": "#/$defs/Source" }, "gomod": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/GoMod" + "$ref": "#/$defs/GoMod" }, "monorepo": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Monorepo" + "$ref": "#/$defs/Monorepo" }, "announce": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Announce" + "$ref": "#/$defs/Announce" }, "sboms": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/SBOM" + "$ref": "#/$defs/SBOM" }, "type": "array" }, "universal_binaries": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/UniversalBinary" + "$ref": "#/$defs/UniversalBinary" }, "type": "array" }, "build": { - "$ref": "#/definitions/Build" + "$ref": "#/$defs/Build" }, "github_urls": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/GitHubURLs" + "$ref": "#/$defs/GitHubURLs" }, "gitlab_urls": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/GitLabURLs" + "$ref": "#/$defs/GitLabURLs" }, "gitea_urls": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/GiteaURLs" + "$ref": "#/$defs/GiteaURLs" }, "includes": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Include" + "$ref": "#/$defs/Include" }, "type": "array" }, "variables": { - "patternProperties": { - ".*": { - "additionalProperties": true - } - }, "type": "object" } }, @@ -2047,7 +1888,7 @@ }, "extra_files": { "items": { - "$ref": "#/definitions/ExtraFile" + "$ref": "#/$defs/ExtraFile" }, "type": "array" } @@ -2082,14 +1923,13 @@ "Release": { "properties": { "github": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/Repo" + "$ref": "#/$defs/Repo" }, "gitlab": { - "$ref": "#/definitions/Repo" + "$ref": "#/$defs/Repo" }, "gitea": { - "$ref": "#/definitions/Repo" + "$ref": "#/$defs/Repo" }, "draft": { "type": "boolean" @@ -2111,8 +1951,7 @@ }, "extra_files": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/ExtraFile" + "$ref": "#/$defs/ExtraFile" }, "type": "array" }, @@ -2126,13 +1965,13 @@ "type": "string" }, "mode": { + "type": "string", "enum": [ "keep-existing", "append", "prepend", "replace" ], - "type": "string", "default": "keep-existing" } }, @@ -2250,13 +2089,13 @@ "type": "string" }, "bucket": { - "$ref": "#/definitions/RepoRef" + "$ref": "#/$defs/RepoRef" }, "folder": { "type": "string" }, "commit_author": { - "$ref": "#/definitions/CommitAuthor" + "$ref": "#/$defs/CommitAuthor" }, "commit_msg_template": { "type": "string" @@ -2371,15 +2210,13 @@ }, "blocks": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/SlackBlock" + "$ref": "#/$defs/SlackBlock" }, "type": "array" }, "attachments": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/SlackAttachment" + "$ref": "#/$defs/SlackAttachment" }, "type": "array" } @@ -2388,28 +2225,24 @@ "type": "object" }, "SlackAttachment": { - "required": [ - "Internal" - ], "properties": { - "Internal": { - "additionalProperties": true - } + "Internal": true }, "additionalProperties": false, - "type": "object" + "type": "object", + "required": [ + "Internal" + ] }, "SlackBlock": { - "required": [ - "Internal" - ], "properties": { - "Internal": { - "additionalProperties": true - } + "Internal": true }, "additionalProperties": false, - "type": "object" + "type": "object", + "required": [ + "Internal" + ] }, "Snapcraft": { "properties": { @@ -2466,8 +2299,7 @@ "layout": { "patternProperties": { ".*": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/SnapcraftLayoutMetadata" + "$ref": "#/$defs/SnapcraftLayoutMetadata" } }, "type": "object" @@ -2475,24 +2307,17 @@ "apps": { "patternProperties": { ".*": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/SnapcraftAppMetadata" + "$ref": "#/$defs/SnapcraftAppMetadata" } }, "type": "object" }, "plugs": { - "patternProperties": { - ".*": { - "additionalProperties": true - } - }, "type": "object" }, "extra_files": { "items": { - "$schema": "http://json-schema.org/draft-04/schema#", - "$ref": "#/definitions/SnapcraftExtraFiles" + "$ref": "#/$defs/SnapcraftExtraFiles" }, "type": "array" } @@ -2501,9 +2326,6 @@ "type": "object" }, "SnapcraftAppMetadata": { - "required": [ - "command" - ], "properties": { "command": { "type": "string" @@ -2557,11 +2379,6 @@ "type": "string" }, "environment": { - "patternProperties": { - ".*": { - "additionalProperties": true - } - }, "type": "object" }, "extensions": { @@ -2574,11 +2391,6 @@ "type": "string" }, "passthrough": { - "patternProperties": { - ".*": { - "additionalProperties": true - } - }, "type": "object" }, "plugs": { @@ -2609,11 +2421,6 @@ "type": "array" }, "sockets": { - "patternProperties": { - ".*": { - "additionalProperties": true - } - }, "type": "object" }, "start_timeout": { @@ -2636,12 +2443,12 @@ } }, "additionalProperties": false, - "type": "object" + "type": "object", + "required": [ + "command" + ] }, "SnapcraftExtraFiles": { - "required": [ - "source" - ], "properties": { "source": { "type": "string" @@ -2654,7 +2461,10 @@ } }, "additionalProperties": false, - "type": "object" + "type": "object", + "required": [ + "source" + ] }, "SnapcraftLayoutMetadata": { "properties": { @@ -2701,6 +2511,19 @@ "additionalProperties": false, "type": "object" }, + "StringArray": { + "oneOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ] + }, "Teams": { "properties": { "enabled": { @@ -2767,7 +2590,7 @@ "type": "boolean" }, "hooks": { - "$ref": "#/definitions/BuildHookConfig" + "$ref": "#/$defs/BuildHookConfig" } }, "additionalProperties": false, @@ -2858,5 +2681,6 @@ "additionalProperties": false, "type": "object" } - } + }, + "description": "goreleaser configuration definition file" } \ No newline at end of file