diff options
| author | Pascal Getreuer <50221757+getreuer@users.noreply.github.com> | 2025-03-31 22:06:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-01 16:06:42 +1100 |
| commit | da166d4d8b1eb5cf984a08effdf20faaca2b3234 (patch) | |
| tree | 07d4bac5c1f532ff5d7432c5f3fd74f924e0dfbe /lib | |
| parent | 3cd292498566cd94983a5311156fb3b7f348d911 (diff) | |
Add "license" field to Community Module JSON schema. (#25085)
Add "license" field to community module schema.
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/python/qmk/json_encoders.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/python/qmk/json_encoders.py b/lib/python/qmk/json_encoders.py index e83a381d52..e8bcf48996 100755 --- a/lib/python/qmk/json_encoders.py +++ b/lib/python/qmk/json_encoders.py | |||
| @@ -250,12 +250,14 @@ class CommunityModuleJSONEncoder(QMKJSONEncoder): | |||
| 250 | return '00module_name' | 250 | return '00module_name' |
| 251 | if key == 'maintainer': | 251 | if key == 'maintainer': |
| 252 | return '01maintainer' | 252 | return '01maintainer' |
| 253 | if key == 'license': | ||
| 254 | return '02license' | ||
| 253 | if key == 'url': | 255 | if key == 'url': |
| 254 | return '02url' | 256 | return '03url' |
| 255 | if key == 'features': | 257 | if key == 'features': |
| 256 | return '03features' | 258 | return '04features' |
| 257 | if key == 'keycodes': | 259 | if key == 'keycodes': |
| 258 | return '04keycodes' | 260 | return '05keycodes' |
| 259 | elif self.indentation_level == 3: # keycodes | 261 | elif self.indentation_level == 3: # keycodes |
| 260 | if key == 'key': | 262 | if key == 'key': |
| 261 | return '00key' | 263 | return '00key' |
