Skip to content

Commit 2c33f9b

Browse files
authored
Add omitempty to samples for autogen (#15681)
1 parent cb9ae56 commit 2c33f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmv1/api/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ type Resource struct {
221221
Examples []*resource.Examples
222222

223223
// Samples for generating tests and documentation
224-
Samples []*resource.Sample
224+
Samples []*resource.Sample `yaml:"samples,omitempty"`
225225

226226
// If true, generates product operation handling logic.
227227
AutogenAsync bool `yaml:"autogen_async,omitempty"`

0 commit comments

Comments
 (0)