Skip to content

Commit b93fb90

Browse files
authored
yauto: Add json schema hint to generated file (#6402)
2 parents bc544df + c70bc5c commit b93fb90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common/Scripts/yauto.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def create_yaml(self):
322322
}
323323

324324
tmp = (
325-
"""name : %(NAME)s
325+
"""# yaml-language-server: $schema=/usr/share/ypkg/schema/schema.json
326+
name : %(NAME)s
326327
version : %(VERSION)s
327328
release : 1
328329
source :
@@ -334,7 +335,7 @@ def create_yaml(self):
334335
)
335336

336337
if self.networking:
337-
tmp += "\nnetworking : yes\n"
338+
tmp += "\nnetworking : true\n"
338339

339340
tmp += """summary : PLEASE FILL ME IN
340341

0 commit comments

Comments
 (0)