Add +optional
to optional fields
#17
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Expected Behavior
The k8s API conventions explain that optional fields should have both the json
omitempty
directive and should have the+optional
comment.Actual Behavior
We are currently using only "omitempty" to indicate which fields are optional, e.g. a Pipeline's Task source bindings: https://github.com/knative/build-pipeline/blob/ef113e1d513c67b692eb1096904789be0e9616b6/pkg/apis/pipeline/v1beta1/pipeline_types.go#L55
Additional Info
The text was updated successfully, but these errors were encountered: