-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Checking for the *[] vs []* #158
Copy link
Copy link
Closed
Description
when we try to nest a struct
e.g. :
response{
total,
orderby,
[]data
}
total:
type: integer
format: int32
data:
type: array
items:
$ref: searchcomponent.yml
code genererated is
type SearchResponse struct {
Data *[]struct {
// Embedded struct due to allOf(#/components/schemas/CommonParent)
someparentstruct
// Embedded fields due to inline allOf schema
Uri *string `json:"uri,omitempty"`
} `json:"data,omitempty"`
Total *int32 `json:"total,omitempty"`
}
above *[]struct should be []*struct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels