Skip to content

Commit 886aac1

Browse files
authored
[FIX] Allowing to render JSON null type (#2265)
* Allowing to render JSON null type with a link * Python style
1 parent 373da35 commit 886aac1

File tree

1 file changed

+1
-0
lines changed
  • tools/schemacode/src/bidsschematools/render

1 file changed

+1
-0
lines changed

tools/schemacode/src/bidsschematools/render/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def get_link(string):
221221
"object": "https://www.json.org/json-en.html",
222222
"integer": "https://www.w3schools.com/js/js_json_datatypes.asp",
223223
"boolean": "https://www.w3schools.com/js/js_json_datatypes.asp",
224+
"null": "https://www.w3schools.com/js/js_json_datatypes.asp",
224225
}
225226
# Allow plurals (e.g., strings -> links to string)
226227
dtype = string[:-1] if string[-1] == "s" else string

0 commit comments

Comments
 (0)