qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.47k stars 37.7k forks source link

keyboard.json schema: set minimum value for `key_unit` #23937

Closed fauxpark closed 2 weeks ago

fauxpark commented 2 weeks ago

Description

For layout macros, all four of X/Y/W/H are defined as key_unit, and it does not make sense for any of them to have a negative value. The same is also true for the LED/RGB Matrix layout X/Y, but these are not key unit values, so they have been changed to unsigned_int.

Types of Changes

Issues Fixed or Closed by This PR

Checklist