Skip to content

Commit 42a68ab

Browse files
committed
scripts: west_commands: create_board: return schema+state
When requesting the schema, return the actual schema and its initial state (empty). Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent a6c2b12 commit 42a68ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/west_commands/create_board/ncs_create_board.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ def do_run(self, args, unknown_args):
5050
schema = json.loads(f.read())
5151

5252
if args.json_schema:
53+
schema = {
54+
"schema": schema,
55+
"state": None,
56+
}
57+
5358
print(json.dumps(schema))
5459
return
5560

0 commit comments

Comments
 (0)