Skip to content

Commit

Permalink
add pattern to name key in block.json Schema (#36343)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy authored and Mamaduka committed Feb 16, 2022
1 parent b7221b4 commit fce20dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schemas/json/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"name": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$",
"description": "The name for a block is a unique string that identifies a block. Names have to be structured as `namespace/block-name`, where namespace is the name of your plugin or theme."
},
"title": {
Expand Down

0 comments on commit fce20dc

Please sign in to comment.