Skip to content

Commit c787ce9

Browse files
authored
[REST] Fix version number in YAML examples (#4978)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
1 parent 69d4c83 commit c787ce9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/fileformat

bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/fileformat/FileFormatResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class FileFormatResource implements RESTResource {
119119
""";
120120

121121
private static final String YAML_THINGS_EXAMPLE = """
122-
version: 2
122+
version: 1
123123
things:
124124
binding:typeBridge:idBridge:
125125
isBridge: true
@@ -143,7 +143,7 @@ public class FileFormatResource implements RESTResource {
143143
""";
144144

145145
private static final String YAML_ITEMS_EXAMPLE = """
146-
version: 2
146+
version: 1
147147
items:
148148
Group1:
149149
type: Group

0 commit comments

Comments
 (0)