소스 검색

Revert "loosen up the schema to allow any pin format"

This reverts commit e41762be64c170f42ab3f8aa6b7e3078e5895e92.
Zach White 4 년 전
부모
커밋
82007aa03a
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      data/schemas/keyboard.jsonschema

+ 6 - 3
data/schemas/keyboard.jsonschema

@@ -163,7 +163,8 @@
                         "items": {
                             "oneOf": [
                                 {
-                                    "type": "string"
+                                    "type": "string",
+                                    "pattern": "^[A-K]\\d{1,2}$"
                                 },
                                 {
                                     "type": "null"
@@ -175,13 +176,15 @@
                 "cols": {
                     "type": "array",
                     "items": {
-                        "type": "string"
+                        "type": "string",
+                        "pattern": "^[A-K]\\d{1,2}$"
                     }
                 },
                 "rows": {
                     "type": "array",
                     "items": {
-                        "type": "string"
+                        "type": "string",
+                        "pattern": "^[A-K]\\d{1,2}$"
                     }
                 }
             }