Skip to content
This repository was archived by the owner on Jun 1, 2020. It is now read-only.

Commit 008b26c

Browse files
authored
Merge pull request #89 from Benni2808/master
propose fix for error messages in alternatives example
2 parents b6e9436 + d11145c commit 008b26c

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

example/src/examples/alternatives/schema.json

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,8 @@
33
"Color": {
44
"title": "Color",
55
"type": "string",
6-
"anyOf": [
7-
{
8-
"type": "string",
9-
"enum": ["#ff0000"],
10-
"title": "Red"
11-
},
12-
{
13-
"type": "string",
14-
"enum": ["#00ff00"],
15-
"title": "Green"
16-
},
17-
{
18-
"type": "string",
19-
"enum": ["#0000ff"],
20-
"title": "Blue"
21-
}
22-
]
6+
"enum": ["#ff0000", "#00ff00", "#0000ff"],
7+
"enumNames": ["Red", "Green", "Blue"]
238
},
249
"Toggle": {
2510
"title": "Toggle",

0 commit comments

Comments
 (0)