From fad9ab4453afdf7091527fc7f59516d9201cee85 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Fri, 18 Mar 2022 18:01:24 +0100 Subject: [PATCH] fix: mark width and height as required Closes https://github.com/ory/sdk/issues/157 --- ui/node/attributes.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/node/attributes.go b/ui/node/attributes.go index 386a7a4c3e5e..0d7d7ba36cab 100644 --- a/ui/node/attributes.go +++ b/ui/node/attributes.go @@ -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.