Skip to content

Commit

Permalink
fix: mark width and height as required
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 18, 2022
1 parent 2fa33e4 commit fad9ab4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/node/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ type ImageAttributes struct {
Identifier string `json:"id"`

// Width of the image
Width int `json:"width,omitempty"`
//
// required: true
Width int `json:"width"`

// Height of the image
Height int `json:"height,omitempty"`
//
// required: true
Height int `json:"height"`

// NodeType represents this node's types. It is a mirror of `node.type` and
// is primarily used to allow compatibility with OpenAPI 3.0.
Expand Down

0 comments on commit fad9ab4

Please sign in to comment.