-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(markdown-builder): add test for enums
taken from #458
- Loading branch information
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"homie": { | ||
"type": "string", | ||
"enum": [ | ||
"integer", | ||
"float", | ||
"boolean", | ||
"string", | ||
"enum", | ||
"color", | ||
"datetime", | ||
"duration", | ||
"json" | ||
], | ||
"title": "HomieDatatype", | ||
"description": "Specifies the datatype of the property value payload.", | ||
"meta:enum": { | ||
"integer": "TODO: describe", | ||
"float": "TODO: describe", | ||
"boolean": "TODO: describe.", | ||
"string": "TODO: describe", | ||
"enum": "TODO: describe", | ||
"color": "TODO: describe", | ||
"datetime": "TODO: describe", | ||
"duration": "TODO: describe", | ||
"json": "TODO: describe" | ||
} | ||
}, | ||
"withmeta": { | ||
"foo": "bar", | ||
"enum": [ | ||
"baa", | ||
"bad", | ||
"bag", | ||
"bah", | ||
"bam", | ||
"ban", | ||
"bap", | ||
"bas", | ||
"bat", | ||
"bay" | ||
], | ||
"meta:enum": { | ||
"baa": "the sounds of sheeps", | ||
"bad": "German bathroom", | ||
"bag": "holding device", | ||
"bah": "humbug!", | ||
"bam": "a loud sound", | ||
"ban": "don't do this", | ||
"bap": "a British soft bread roll", | ||
"bas": "from ancient Egyptian religion, an aspect of the soul", | ||
"bat": "…out of hell", | ||
"bay": ", sitting by the dock of the" | ||
} | ||
}, | ||
"withoutmeta": { | ||
"bar": "foo", | ||
"enum": [ | ||
"baa", | ||
"bad", | ||
"bag", | ||
"bah", | ||
"bam", | ||
"ban", | ||
"bap", | ||
"bas", | ||
"bat", | ||
"bay" | ||
] | ||
} | ||
} | ||
} |