Skip to content

Commit 0b36575

Browse files
committed
fix(oas): null properties
properties cannot be null, as validated by the OAS linter.
1 parent fdf230d commit 0b36575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openapi/openapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ type Schema struct {
160160
Type string `json:"type,omitempty"`
161161
Format string `json:"format,omitempty"`
162162
Items *Schema `json:"items,omitempty"`
163-
Properties Properties `json:"properties"`
163+
Properties Properties `json:"properties,omitempty"`
164164
Ref string `json:"$ref,omitempty"`
165165
XAEPResource *XAEPResource `json:"x-aep-resource,omitempty"`
166166
XAEPFieldNumber int `json:"x-aep-field-number,omitempty"`

0 commit comments

Comments
 (0)