Skip to content

Commit f44c7b1

Browse files
committed
Add omitempty specification
1 parent 95e752e commit f44c7b1

File tree

2 files changed

+47
-47
lines changed

2 files changed

+47
-47
lines changed

apispec/api.gen.go

Lines changed: 45 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apispec/api.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,12 +637,12 @@ components:
637637
type: string
638638
description: CIDR range for the rule (if applicable).
639639
x-oapi-codegen-extra-tags:
640-
yaml: cidr
640+
yaml: cidr,omitempty
641641
domain:
642642
type: string
643643
description: Domain for the rule (if applicable).
644644
x-oapi-codegen-extra-tags:
645-
yaml: domain
645+
yaml: domain,omitempty
646646
policy:
647647
type: string
648648
enum:

0 commit comments

Comments
 (0)