Skip to content

Commit

Permalink
Cleaning up example (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Apr 4, 2022
1 parent 194c91a commit d13816a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/state.tests/errors.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//
// This file contains an intentionally invalid status message, intended
// to make sure that the validator is catching the necessary errors.
// This is NOT an example of how to report errors :-/.
//
{
"version": 2,
"version": 1,
"timestamp": "2018-08-26T21:39:29.364Z",
"id": "monkey_brains",
"system": {
Expand Down
7 changes: 6 additions & 1 deletion tests/state.tests/errors.out
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
Starting major version 2
6 schema violations found
instance type (string) does not match any allowed primitive type (allowed: ["object"])
object has missing required properties (["hardware","last_config","operational","serial_no","software"])
object instance has properties which are not allowed by the schema: ["cov_increment","deadband","high_limit","instance_number","low_limit","object_type","rapt","resolution"]
object instance has properties which are not allowed by the schema: ["device_id","device_status","fling","object_name","system_status"]
object instance has properties which are not allowed by the schema: ["id","status"]

0 comments on commit d13816a

Please sign in to comment.