Skip to content

Commit

Permalink
refactor: improved block.json version schema
Browse files Browse the repository at this point in the history
  • Loading branch information
lgersman committed Jul 12, 2024
1 parent 3b3afa5 commit 8015532
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@
},
"version": {
"type": "string",
"description": "The current version number of the block, such as 1.0 or 1.0.3. It’s similar to how plugins are versioned. This field might be used with block assets to control cache invalidation, and when the block author omits it, then the installed version of WordPress is used instead."
"description": "The current version number of the block, such as 1.0 or 1.0.3. It’s similar to how plugins are versioned. This field might be used with block assets to control cache invalidation, and when the block author omits it, then the installed version of WordPress is used instead.",
"pattern": "^[0-9]{1,3}(\\.[0-9]{1,3}){0,2}$",
"maxLength": 11,
"default": "1.0.0"
},
"textdomain": {
"type": "string",
Expand Down Expand Up @@ -1332,7 +1335,8 @@
"type": "object",
"required": [
"name",
"title"
"title",
"version"
],
"additionalProperties": false,
"properties": {
Expand Down

0 comments on commit 8015532

Please sign in to comment.