@@ -17,17 +17,17 @@ import (
1717// Spec is the specification for a package build.
1818type Spec struct {
1919 // Name is the name of the package.
20- Name string `yaml:"name" json:"name" jsonschema:"required"`
20+ Name string `yaml:"name" json:"name,omitempty " jsonschema:"required"`
2121 // Description is a short description of the package.
22- Description string `yaml:"description" json:"description" jsonschema:"required"`
22+ Description string `yaml:"description" json:"description,omitempty " jsonschema:"required"`
2323 // Website is the URL to store in the metadata of the package.
24- Website string `yaml:"website" json:"website"`
24+ Website string `yaml:"website" json:"website,omitempty "`
2525
2626 // Version sets the version of the package.
27- Version string `yaml:"version" json:"version" jsonschema:"required"`
27+ Version string `yaml:"version" json:"version,omitempty " jsonschema:"required"`
2828 // Revision sets the package revision.
2929 // This will generally get merged into the package version when generating the package.
30- Revision string `yaml:"revision" json:"revision" jsonschema:"required,oneof_type=string;integer"`
30+ Revision string `yaml:"revision" json:"revision,omitempty " jsonschema:"required,oneof_type=string;integer"`
3131
3232 // Marks the package as architecture independent.
3333 // It is up to the package author to ensure that the package is actually architecture independent.
@@ -70,7 +70,7 @@ type Spec struct {
7070 Args map [string ]string `yaml:"args,omitempty" json:"args,omitempty"`
7171
7272 // License is the license of the package.
73- License string `yaml:"license" json:"license"`
73+ License string `yaml:"license" json:"license,omitempty "`
7474 // Vendor is the vendor of the package.
7575 Vendor string `yaml:"vendor,omitempty" json:"vendor,omitempty"`
7676 // Packager is the name of the person,team,company that packaged the package.
0 commit comments