Skip to content

Commit f9e0096

Browse files
lucemiaguiccbr
andauthored
Fix jsons (#10)
* remove trailing commas from docs/json files Remove trailing commas from docs/json files to prevent JSON validation errors. * add missing property names to docs/json Prior to this patch, json schema validators would fail since `properties` should be an `object` and not an `array`. To fix that, this patch is replacing the `array` with an `object` and providing proper keys to the internal children schemas. Note: keys with an underline as a prefix are simple acronyms that match the description of the schemas. They might not reflect the real property names. The idea is to replace them with the proper values in the next commits. * add script to generate markdown documentation from schemas Add a script on `package.json` to generate markdown documentation from schemas. The markdown generator being used is the adobe jsonschema2markdown tool (https://github.com/adobe/jsonschema2md). Script is called `doc` and the generated markdowns are stored in `docs/md`. Co-authored-by: Guilherme Campos Camargo <[email protected]>
1 parent 842dd4f commit f9e0096

File tree

6 files changed

+75
-72
lines changed

6 files changed

+75
-72
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ ZXPSignCmd.exe
1010
signer.bat
1111
commands.txt
1212
debug.txt
13-
package-lock.json
13+
package-lock.json
14+
docs/md/

docs/json/helpers/mask.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"const": "f"
7575
}
7676
],
77-
"default": "a",
77+
"default": "a"
7878
}
7979
}
8080
}

docs/json/helpers/transform.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"$ref": "#/properties/multiDimensionalKeyframed"
14-
},
14+
}
1515
],
1616
"default": {"a":0, "k":[0, 0, 0]},
1717
"type": "object"

0 commit comments

Comments
 (0)