We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b221b4 commit fb2f733Copy full SHA for fb2f733
src/api/DeviceShadow.ts
@@ -10,13 +10,17 @@ export const DeviceShadow = Type.Object({
10
minLength: 1,
11
examples: ['2019-08-24T14:15:22Z'],
12
}),
13
- updatedAt: Type.String({
14
- minLength: 1,
15
- examples: ['2019-08-24T14:15:22Z'],
16
- }),
+ updatedAt: Type.Optional(
+ Type.String({
+ minLength: 1,
+ examples: ['2019-08-24T14:15:22Z'],
17
+ }),
18
+ ),
19
20
state: Type.Object({
- reported: Type.Record(Type.String({ minLength: 1 }), Type.Any()),
21
+ reported: Type.Optional(
22
+ Type.Record(Type.String({ minLength: 1 }), Type.Any()),
23
24
desired: Type.Optional(
25
Type.Record(Type.String({ minLength: 1 }), Type.Any()),
26
),
0 commit comments