From 00163e6833c6939dd3677bc662984a63b609f595 Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Fri, 2 Aug 2024 16:53:07 +0000 Subject: [PATCH] zarf package config Signed-off-by: Austin Abro --- src/api/v1alpha1/package.go | 2 +- zarf.schema.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/v1alpha1/package.go b/src/api/v1alpha1/package.go index 89e27c9826..61eac9952c 100644 --- a/src/api/v1alpha1/package.go +++ b/src/api/v1alpha1/package.go @@ -31,7 +31,7 @@ type ZarfPackage struct { // The API version of the Zarf package. ApiVersion string `json:"apiVersion,omitempty," jsonschema:"enum=zarf.dev/v1alpha1"` // The kind of Zarf package. - Kind ZarfPackageKind `json:"kind" jsonschema:"enum=ZarfInitConfig,enum=ZarfPackageConfig"` + Kind ZarfPackageKind `json:"kind" jsonschema:"enum=ZarfInitConfig,enum=ZarfPackageConfig,default=ZarfPackageConfig"` // Package metadata. Metadata ZarfMetadata `json:"metadata,omitempty"` // Zarf-generated package build data. diff --git a/zarf.schema.json b/zarf.schema.json index 6249898643..0a6484a46b 100644 --- a/zarf.schema.json +++ b/zarf.schema.json @@ -1116,8 +1116,7 @@ "ZarfInitConfig", "ZarfPackageConfig" ], - "description": "The kind of Zarf package.", - "default": "ZarfPackageConfig" + "description": "The kind of Zarf package." }, "metadata": { "$ref": "#/$defs/ZarfMetadata",