Skip to content

Commit

Permalink
test(markdown-builder): add test for enums
Browse files Browse the repository at this point in the history
taken from #458
  • Loading branch information
trieloff committed Nov 14, 2022
1 parent cc4b395 commit c9141b3
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions test/fixtures/enums/enum-meta-enum.schema.json
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"
]
}
}
}

0 comments on commit c9141b3

Please sign in to comment.