Add quotes around YAML string field
This change fixes an issue where the owner field was being parsed
incorrectly.  Without quotes, YAML will parse a field as an int first,
if it can, otherwise as a string.
@@ -446,9 +446,9 @@ mod test {
use std::panic;
use std::thread;
- static LIGHTBULB_YAML_EXAMPLE: &[u8; 816] = br##"- name: "Lightbulb"
+ static LIGHTBULB_YAML_EXAMPLE: &[u8; 818] = br##"- name: "Lightbulb"
description: "Example Lightbulb schema"
- owner: 013600
+ owner: "013600"
properties:
- name: "size"
data_type: NUMBER
@@ -475,10 +475,10 @@ mod test {
data_type: STRING
description: "RGB value" "##;
- static PHONE_YAML_EXAMPLE: &[u8; 641] = br##"
+ static PHONE_YAML_EXAMPLE: &[u8; 643] = br##"
- name: "Phone"
description: "Example phone schema"
- owner: 013600
+ owner: "013600"
properties:
- name: "brand"
data_type: STRING
