Skip to content

Commit d7aeb36

Browse files
committed
schema/resources: Add ResourceTypes property to BatchRepresentation
1 parent b0552c0 commit d7aeb36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

schema/resources/resources.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ func (v BatchResourceDiscovery) Sort() {
5858
}
5959

6060
type BatchRepresentation struct {
61-
HrefRaw string `json:"href"`
62-
ETag []byte `json:"etag"`
63-
Content cbor.RawMessage `json:"rep"`
61+
HrefRaw string `json:"href"`
62+
ETag []byte `json:"etag"`
63+
Content cbor.RawMessage `json:"rep"`
64+
ResourceTypes []string `json:"rt,omitempty"`
6465
}
6566

6667
func (v BatchRepresentation) DeviceID() string {

0 commit comments

Comments
 (0)