From 38675f9a7e3535526c254ad8d74eab5ad5ab0d3d Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Fri, 4 Nov 2022 13:52:30 -0300 Subject: [PATCH] docs: update schema Signed-off-by: Carlos A Becker --- nfpm.go | 2 +- www/docs/static/schema.json | 46 ++++++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/nfpm.go b/nfpm.go index 0d159e6e..cac6c4fb 100644 --- a/nfpm.go +++ b/nfpm.go @@ -244,7 +244,7 @@ type Info struct { Homepage string `yaml:"homepage,omitempty" json:"homepage,omitempty" jsonschema:"title=package homepage,example=https://example.com"` License string `yaml:"license,omitempty" json:"license,omitempty" jsonschema:"title=package license,example=MIT"` Changelog string `yaml:"changelog,omitempty" json:"changelog,omitempty" jsonschema:"title=package changelog,example=changelog.yaml,description=see https://github.com/goreleaser/chglog for more details"` - DisableGlobbing bool `yaml:"disable_globbing,omitempty" json:"disable_globbing,omitempty" jsonschema:"title=wether to disable file globbing,default=false"` + DisableGlobbing bool `yaml:"disable_globbing,omitempty" json:"disable_globbing,omitempty" jsonschema:"title=whether to disable file globbing,default=false"` Target string `yaml:"-" json:"-"` } diff --git a/www/docs/static/schema.json b/www/docs/static/schema.json index 1f741c5e..8856fa34 100644 --- a/www/docs/static/schema.json +++ b/www/docs/static/schema.json @@ -63,6 +63,42 @@ "additionalProperties": false, "type": "object" }, + "ArchLinux": { + "properties": { + "pkgbase": { + "type": "string", + "title": "explicitly specify the name used to refer to a split package" + }, + "arch": { + "type": "string", + "title": "architecture in archlinux nomenclature" + }, + "packager": { + "type": "string", + "title": "organization that packaged the software" + }, + "scripts": { + "$ref": "#/$defs/ArchLinuxScripts", + "title": "archlinux-specific scripts" + } + }, + "additionalProperties": false, + "type": "object" + }, + "ArchLinuxScripts": { + "properties": { + "preupgrade": { + "type": "string", + "title": "preupgrade script" + }, + "postupgrade": { + "type": "string", + "title": "postupgrade script" + } + }, + "additionalProperties": false, + "type": "object" + }, "Config": { "properties": { "replaces": { @@ -127,6 +163,10 @@ "$ref": "#/$defs/APK", "title": "apk-specific settings" }, + "archlinux": { + "$ref": "#/$defs/ArchLinux", + "title": "archlinux-specific settings" + }, "name": { "type": "string", "title": "package name" @@ -246,7 +286,7 @@ }, "disable_globbing": { "type": "boolean", - "title": "wether to disable file globbing", + "title": "whether to disable file globbing", "default": false }, "overrides": { @@ -534,6 +574,10 @@ "apk": { "$ref": "#/$defs/APK", "title": "apk-specific settings" + }, + "archlinux": { + "$ref": "#/$defs/ArchLinux", + "title": "archlinux-specific settings" } }, "additionalProperties": false,