mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 19:35:32 +00:00
| .. | ||
| dtd | ||
| create_keylayout_schema.sh | ||
| keylayout.schema.json | ||
| readme.md | ||
Keylayout
This is to get a keylayout.schema.json for validating keylayout files
-
We first need to have a
.XSD filecreated from a.keylayout file(which is an xml-file type ) e.g. resources\standards-data\keylayout\dtd\keylayout.xsd -
Then we need to run
./create_keylayout_schema.shto obtain a.schema.jsonfile e.g resources\standards-data\keylayout\create_keylayout_schema.sh -
Then we need to run
build.sh configureofcommon/web/types/which will create aschema.validate.mjsfile e.g. common/web/types/build.sh configure -
The .mjs can then be used via
SchemaValidatorsto validate keylayout files e.g. SchemaValidators.default.keylayout(source)