Skip to content

Commit

Permalink
fix(web): DeviceState schema changed, update validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppzippy committed Aug 9, 2023
1 parent 6662a21 commit fc7655a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/src/libTypes/DeviceState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ const deviceStateSchema = Type.Object({
}),
]),
),
firmwareVersion: Type.Optional(Type.String()),
firmwareVersion: Type.Optional(
Type.Object({
major: Type.Number(),
minor: Type.Number(),
}),
),
serialNumber: Type.Optional(Type.String()),
});
export type DeviceState = Static<typeof deviceStateSchema>;
Expand Down

0 comments on commit fc7655a

Please sign in to comment.