src: add missing 'omitempty' annotations (#1773)

This commit is contained in:
Luke Kingland 2023-06-06 03:29:26 +09:00 committed by GitHub
parent 895226fccc
commit d3e33738b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -53,7 +53,7 @@ type Function struct {
// Registry at which to store interstitial containers, in the form
// [registry]/[user].
Registry string `yaml:"registry"`
Registry string `yaml:"registry,omitempty"`
// Optional full OCI image tag in form:
// [registry]/[namespace]/[name]:[tag]
@ -64,7 +64,7 @@ type Function struct {
// alice/my.function.name
// If Image is provided, it overrides the default of concatenating
// "Registry+Name:latest" to derive the Image.
Image string `yaml:"image"`
Image string `yaml:"image,omitempty"`
// SHA256 hash of the latest image that has been built
ImageDigest string `yaml:"imageDigest,omitempty"`

View File

@ -122,8 +122,6 @@
"Function": {
"required": [
"specVersion",
"registry",
"image",
"created"
],
"properties": {