forked from mirrors/qmk_userspace
		
	Restrict "feature" and "animation" keys (#21895)
This commit is contained in:
		
					parent
					
						
							
								16ad362e67
							
						
					
				
			
			
				commit
				
					
						cdff9b8da7
					
				
			
		
					 2 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
					@ -29,6 +29,10 @@
 | 
				
			||||||
        "minLength": 1,
 | 
					        "minLength": 1,
 | 
				
			||||||
        "maxLength": 250
 | 
					        "maxLength": 250
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "snake_case": {
 | 
				
			||||||
 | 
					        "type": "string",
 | 
				
			||||||
 | 
					        "pattern": "^[a-z][a-z0-9_]*$"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "layout_macro": {
 | 
					    "layout_macro": {
 | 
				
			||||||
        "oneOf": [
 | 
					        "oneOf": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -256,7 +256,11 @@
 | 
				
			||||||
                "enabled": {"type": "boolean"}
 | 
					                "enabled": {"type": "boolean"}
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "features": {"$ref": "qmk.definitions.v1#/boolean_array"},
 | 
					        "features": {
 | 
				
			||||||
 | 
					            "$ref": "qmk.definitions.v1#/boolean_array",
 | 
				
			||||||
 | 
					            "propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "indicators": {
 | 
					        "indicators": {
 | 
				
			||||||
            "type": "object",
 | 
					            "type": "object",
 | 
				
			||||||
            "properties": {
 | 
					            "properties": {
 | 
				
			||||||
| 
						 | 
					@ -370,6 +374,7 @@
 | 
				
			||||||
            "properties": {
 | 
					            "properties": {
 | 
				
			||||||
                "animations": {
 | 
					                "animations": {
 | 
				
			||||||
                    "type": "object",
 | 
					                    "type": "object",
 | 
				
			||||||
 | 
					                    "propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }
 | 
				
			||||||
                    "additionalProperties": {
 | 
					                    "additionalProperties": {
 | 
				
			||||||
                        "type": "boolean"
 | 
					                        "type": "boolean"
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
| 
						 | 
					@ -419,6 +424,7 @@
 | 
				
			||||||
            "properties": {
 | 
					            "properties": {
 | 
				
			||||||
                "animations": {
 | 
					                "animations": {
 | 
				
			||||||
                    "type": "object",
 | 
					                    "type": "object",
 | 
				
			||||||
 | 
					                    "propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }
 | 
				
			||||||
                    "additionalProperties": {
 | 
					                    "additionalProperties": {
 | 
				
			||||||
                        "type": "boolean"
 | 
					                        "type": "boolean"
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
| 
						 | 
					@ -471,6 +477,7 @@
 | 
				
			||||||
            "properties": {
 | 
					            "properties": {
 | 
				
			||||||
                "animations": {
 | 
					                "animations": {
 | 
				
			||||||
                    "type": "object",
 | 
					                    "type": "object",
 | 
				
			||||||
 | 
					                    "propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }
 | 
				
			||||||
                    "additionalProperties": {
 | 
					                    "additionalProperties": {
 | 
				
			||||||
                        "type": "boolean"
 | 
					                        "type": "boolean"
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue