mirror of https://github.com/knative/func.git
src: add missing 'omitempty' annotations (#1773)
This commit is contained in:
parent
895226fccc
commit
d3e33738b9
|
@ -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"`
|
||||
|
|
|
@ -122,8 +122,6 @@
|
|||
"Function": {
|
||||
"required": [
|
||||
"specVersion",
|
||||
"registry",
|
||||
"image",
|
||||
"created"
|
||||
],
|
||||
"properties": {
|
||||
|
|
Loading…
Reference in New Issue